kriosmane / svg-downloader
This is my package svg-downloader
Requires
- php: ^8.0|^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpunit/phpunit: ^9.5
README
Laravel Package to download SVG Material Design Icons by Material Design Icons
Note: Please use the main MaterialDesign repo to report issues. This repo is for distribution of the SVG files only.
Installation
You can install the package via composer:
composer require kriosmane/svg-downloader
You can publish the config file with:
php artisan vendor:publish --tag="svg-downloader-config"
This is the contents of the published config file:
return [ 'remote_url' => env('MDI_SVG_ENDPOINT', 'https://cdn.jsdelivr.net/npm/@mdi/svg@6.9.96/'), 'disk' => [ 'driver' => env('MDI_SGV_FILESYSTEM_DISK', 'local'), 'root' => env('MDI_SGV_FILESYSTEM_DISK_ROOT', public_path('/svg')), ], ];
Usage
php artisan svg-downloader
php artisan svg-downloader --author=Google
php artisan svg-downloader --path="storage/mdi/svg"
$svgDownloader = new Kriosmane\SvgDownloader();
Changelog
Please see CHANGELOG for more information on what has changed recently. 1
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Credits
License
The MIT License (MIT). Please see License File for more information.
How can I thank you?
As a programmer i need coffee to be productive, don't let my cup get emtpy
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!