chubbyphp / chubbyphp-clean-directories
A command to clean directories based on name mapping.
Installs: 9 937
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.2
- symfony/console: ^5.4.46|^6.4.14|^7.2
Requires (Dev)
- chubbyphp/chubbyphp-dev-helper: dev-master
- chubbyphp/chubbyphp-mock: ^1.8
- infection/infection: ^0.29.8
- php-coveralls/php-coveralls: ^2.7.0
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan: ^2.0.3
- phpunit/phpunit: ^11.5.0
- psr/container: ^2.0.2
README
Description
A command to clean directories based on directoryName => directoryPath mapping.
Requirements
- php: ^8.2
- symfony/console: ^5.4.46|^6.4.14|^7.2
Installation
Through Composer as chubbyphp/chubbyphp-clean-directories.
composer require chubbyphp/chubbyphp-clean-directories "^1.4"
Usage
#!/usr/bin/env php <?php declare(strict_types=1); namespace App; use Chubbyphp\CleanDirectories\Command\CleanDirectoriesCommand; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\InputOption; require __DIR__.'/../vendor/autoload.php'; $input = new ArgvInput(); $console = new Application(); $console->addCommand(new CleanDirectoriesCommand(['directoryName' => 'directoryPath'])); $console->run($input);
console clean-directories directoryName
Copyright
2024 Dominik Zogg