mrbohem / laramage
This package is used for image manipulation and uploadation on multiple storage
Installs: 90
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mrbohem/laramage
Requires
- php: ^8.4
- aws/aws-sdk-php: ^3.0
- illuminate/contracts: ^10.0||^11.0||^12.0
- illuminate/support: ^11.0 || ^12.0.0
- intervention/image-laravel: ^1.3
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
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();