PHP code example of teamnovu / statamic-unused-assets

1. Go to this page and download the library: Download teamnovu/statamic-unused-assets 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/ */

    

teamnovu / statamic-unused-assets example snippets


'widgets' => [
    // ...

        [
            'type' => 'unused-assets', // Required
            'limit' => 300, // Default: 300 – The number of images to display from the widget.
            'width' => 100, // Default: 100 – The size of the widget.
            'excluded_paths' => [], // Example: ['assets/myFolder/'] - Default: [] – The paths to exclude from the search.
        ],
],
 bash
php artisan queue:listen