digifactory/laravel-svg-fixer-middleware
最新稳定版本:v4.1.1
Composer 安装命令:
composer require digifactory/laravel-svg-fixer-middleware
包简介
Fixes your uploaded SVG files before validating through the Laravel validator
README 文档
README
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:
composer require digifactory/laravel-svg-fixer-middleware
Usage
Simply register the SvgFixerMiddleware class in your middleware stack.
// app/Http/Kernel.php class Kernel extends HttpKernel { protected $middleware = [ // ... \DigiFactory\SvgFixer\SvgFixerMiddleware::class, ]; // ... }
The middleware only runs for POST requests containing SVG files.
Testing
composer test
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 helpdesk@digifactory.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 32.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-28