PHP code example of justbetter / statamic-content-usage

1. Go to this page and download the library: Download justbetter/statamic-content-usage 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/ */

    

justbetter / statamic-content-usage example snippets

bash
php artisan content-usage:export-assets
bash
php artisan content-usage:export-unused-assets
bash
php artisan content-usage:export-entries --collection=blog
bash
php artisan content-usage:export-entries --collection=global --output=/tmp/global-usage.csv
bash
php artisan content-usage:export-unused-entries blog
bash
php artisan content-usage:export-unused-entries global --output=/tmp/unused-global.csv