kriosmane/svg-downloader

This is my package svg-downloader

v1.1 2022-09-20 16:53 UTC

This package is auto-updated.

Last update: 2024-10-20 21:38:43 UTC


README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

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!