fromjun/laravel-imageresizer-sdk
最新稳定版本:1.0.2
Composer 安装命令:
composer require fromjun/laravel-imageresizer-sdk
包简介
Laravel SDK для Image Resizer Service
README 文档
README
A Laravel wrapper for m1n64/image-resizer-sdk that provides seamless integration via service provider and facade.
Installation
composer require fromjun/laravel-imageresizer-sdk
Configuration
To publish the configuration file:
php artisan vendor:publish --tag=config
Add the following to your .env file:
IMAGE_RESIZER_API_KEY=your-api-key
IMAGE_RESIZER_BASE_URL=http://imageresizer:5689
IMAGE_RESIZER_PUBLIC_URL=http://localhost:5689
Usage
Using the facade:
use ImageResizer; ImageResizer::ping(); // Check connection ImageResizer::upload('/path/to/image.jpg');
Using dependency injection:
use M1n64\ImageResizer\Client; public function __construct(protected Client $client) {} public function store() { $response = $this->client->upload($filePath); }
Original SDK
➡️ github.com/m1n64/image-resizer-sdk - PHP SDK
➡️ github.com/m1n64/image-resizing-shared-service - Service
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-01