codeurs / imagehelper
此包已被弃用且不再维护。未建议替代包。
这是一个围绕流行的 Intervention Image php 库的包装器,用于常见的图像操作,并扩展了缓存功能。
0.0.1
2017-08-28 09:44 UTC
Requires
- php: >=5.4
- intervention/image: ^2.3
Requires (Dev)
- peridot-php/leo: ~1.0
- peridot-php/peridot: ^1.19
This package is not auto-updated.
Last update: 2022-12-24 19:08:13 UTC
README
这是一个围绕流行的 Intervention Image 库的包装器,用于常见的图像操作,并扩展了缓存功能。
开始使用
- composer require codeurs/imagehelper
代码示例
use Codeurs\ImageHelper; // Set the cache folder location ImageHelper::setCacheFolder('cache/images'); // Resize an image and return the cached file location $src = ImageHelper::fromPath('assets/image.png') ->resize(320, 240) ->src();