Download the PHP package digifactory/laravel-svg-fixer-middleware without Composer
On this page you can find all versions of the php package digifactory/laravel-svg-fixer-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digifactory/laravel-svg-fixer-middleware
More information about digifactory/laravel-svg-fixer-middleware
Files in digifactory/laravel-svg-fixer-middleware
Package laravel-svg-fixer-middleware
Short Description Fixes your uploaded SVG files before validating through the Laravel validator
License MIT
Homepage https://github.com/digifactory/laravel-svg-fixer-middleware
Informations about the package laravel-svg-fixer-middleware
Fix 'invalid' SVG files
The Laravel image
validator doesn't validate an SVG if the file is missing the XML declaration on top. This middleware automatically fixes these incorrect SVG files by adding the XML declaration before it is validated.
Installation
You can install the package via composer:
Usage
Simply register the SvgFixerMiddleware
class in your middleware stack.
The middleware only runs for POST
requests containing SVG files.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- DigiFactory Webworks
- All Contributors
License
The MIT License (MIT). Please see License File for more information.