xtetis/yii2-image

用于上传并以base64格式预览图片的扩展(模块、模型、小部件等)

此包的规范仓库似乎已消失,因此该包已被冻结。

安装: 4

依赖者: 0

建议者: 0

安全: 0

类型:yii2-extension

dev-master 2019-05-13 07:44 UTC

This package is not auto-updated.

Last update: 2020-04-13 20:49:22 UTC


README

Image Base64 uploader

===================== 基于base64处理图片的扩展(模块、模型等)

安装

安装此扩展的首选方式是通过 composer

运行

php composer.phar require --prefer-dist xtetis/yii2-imagesbuploader "*"

或添加

"xtetis/yii2-imagesbuploader": "*"

到您的 composer.json 文件的require部分。

使用方法

一旦安装了扩展,只需在您的代码中通过

<?= \xtetis\imagesuploader\AutoloadExample::widget(); ?>```



4. Миграции модуля xtetis/yii2-imagesbuploader

    ./yii migrate/up --migrationPath=@vendor/xtetis/yii2-imagesbuploader/src/migrations











The extension has been generated successfully.

To enable it in your application, you need to create a git repository and require it via composer.

cd /var/www/ukrbix.lc/framework/runtime/tmp-extensions/yii2-imagesbuploader

git init
git add -A
git commit
git remote add origin https://path.to/your/repo
git push -u origin master
The next step is just for initial development, skip it if you directly publish the extension on packagist.org

Add the newly created repo to your composer.json.

"repositories":[
    {
        "type": "git",
        "url": "https://path.to/your/repo"
    }
]
Note: You may use the url file:///var/www/ukrbix.lc/framework/runtime/tmp-extensions/yii2-imagesbuploader for testing.

Require the package with composer

composer.phar require xtetis/yii2-imagesbuploader:dev-master
And use it in your application.

\xtetis\imagesuploader\AutoloadExample::widget();
When you have finished development register your extension at packagist.org.