ty666/picture-manager

一个图片管理工具

2.0.15 2017-06-25 17:31 UTC

README

图片管理工具

完整中文文档

安装

  • 运行 composer require ty666/picture-manager
  • Ty666\PictureManager\PictureManagerServiceProvider::class, 添加到 providers 中,在 config/app.php
  • 运行 php artisan vendor:publish --provider="Ty666\PictureManager\PictureManagerServiceProvider"

配置

config/picture.php 中设置 pictureConfig 选项

用法

显示图片

Route::get('pic/{pictureId}_{style?}', function ($pictureId, $style = null) {
    return PictureManager::init($pictureId, $style)->show();
});

访问 https:///pic/99cceb7fd0bdf4e17903dc2655c84af4 成功!