andreosoft / yii2-image
为 Yii 框架的 Codemirror 扩展
dev-master
2017-07-29 09:13 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-20 21:07:18 UTC
README
Yii2 的图片扩展
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require 'andreosoft/yii2-image'
或者将以下内容添加到您的 composer.json
文件的 require 部分:
"andreosoft/yii2-image": "*"
安装
使用
安装扩展后,只需在代码中使用即可
....
\Yii::getAlias('@root'), 'webroot' => 'http://mysite.com/uploads', 'quality' => 50, ]; echo Image::thumb('test-image.jpg', 120, 120) ?>