mrbohem/laramage
最新稳定版本:v1.0.4
Composer 安装命令:
composer require mrbohem/laramage
包简介
This package is used for image manipulation and uploadation on multiple storage
关键字:
README 文档
README
Laramage is a Laravel-friendly image manipulation package built on top of Intervention Image v3. It allows you to easily read, resize, convert, and store images across different storage disks like local, public, and s3.
✨ Features
- ✅ Read image from
UploadedFileor file path - 🔧 Resize, scale, crop, and apply any Intervention method
- 🔄 Convert image formats (e.g. JPEG, PNG, WebP)
- 💾 Store image in any Laravel-supported filesystem
🧰 Requirements
- PHP 8.1+
- Laravel 9+
- Intervention Image v3
- GD or Imagick extension
📦 Installation
composer require mrbohem/laramage
🚀 Usage
use MrBohem\Laramage\Laramage;
Laramage::handler()
->load('public/images/product/main.png')
->convert('toWebp')
->apply('scale', 600, 600)
->store(directory: 'processed')
->getPath();
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-07