PHP code example of kriosmane / svg-downloader

1. Go to this page and download the library: Download kriosmane/svg-downloader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kriosmane / svg-downloader example snippets


return [
  
    'remote_url' => env('MDI_SVG_ENDPOINT', 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/'),

    'disk' => [

        'driver' => env('MDI_SGV_FILESYSTEM_DISK', 'local'),
        'root'   => env('MDI_SGV_FILESYSTEM_DISK_ROOT', public_path('/svg')),
    ],
];

$svgDownloader = new Kriosmane\SvgDownloader();
bash
php artisan vendor:publish --tag="svg-downloader-config"
bash
php artisan svg-downloader
php artisan svg-downloader --author=Google
php artisan svg-downloader --path="storage/mdi/svg"