PHP code example of avto-dev / composer-cleanup-plugin

1. Go to this page and download the library: Download avto-dev/composer-cleanup-plugin 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/ */

    

avto-dev / composer-cleanup-plugin example snippets




return [
    'global' => [
        'test.yml', // Delete file `test.yml` from all packages
        'ci.yaml',
        'stub.json',
    ],

    'packages' => [
        'company/first-package' => ['tests'], // Delete all matches in package
        'company/second-package' => ['test', '*.md'],
        'company/third-package' => ['docs'],
    ],

    'excluded_global' => [
        'stub.json', // This file will be excluded from global list
    ],
    'excluded_packages' => [
        'company/first-package' => ['tests/ApiTest.php'], // This file will not be deleted
        'company/third-package' => null, // This package will be excluded from the purge list.
    ],
];