Download the PHP package golchha21/resmushit without Composer
On this page you can find all versions of the php package golchha21/resmushit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download golchha21/resmushit
More information about golchha21/resmushit
Files in golchha21/resmushit
Package resmushit
Short Description A Laravel package for the popular image optimization web service reSmush.it
License MIT
Homepage https://github.com/golchha21/resmushit
Informations about the package resmushit
reSmushit for Laravel
A Laravel package for the popular image optimization web service reSmush.it
Installation
Install via composer
Publish configuration file
Example configuration file
Usage
Option 1: Direct class usage
Option 2: Facade usage
Error Handling
If the reSmush.it API is unreachable, times out, or returns an invalid response, the optimizer will return a structured error array instead of triggering a fatal error.
Example
Return Value
Both path() and paths() always return arrays.
- On success, the response contains optimization details returned by the reSmush.it API.
- On failure, the response contains an
errorkey describing the issue, along with additional context when available.
This applies to both single and batch optimization.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
For common issues and environment-specific fixes, see Troubleshoot. If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Author
- Ulhas Vardhan Golchha -- Initial work
See also the list of contributors who participated in this project.
License
reSmushit for Laravel is open-sourced software licensed under the MIT license.
All versions of resmushit with dependencies
ext-json Version *
ext-fileinfo Version *
ext-curl Version *
laravel/framework Version ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0