PHPackages                             chubbyphp/chubbyphp-clean-directories - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. chubbyphp/chubbyphp-clean-directories

ActiveLibrary[CLI &amp; Console](/categories/cli)

chubbyphp/chubbyphp-clean-directories
=====================================

A command to clean directories based on name mapping.

1.5.1(4mo ago)015.2k↑25%1MITPHPPHP ^8.3CI passing

Since Sep 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-clean-directories)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories)[ RSS](/packages/chubbyphp-chubbyphp-clean-directories/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (12)Used By (0)

chubbyphp-clean-directories
===========================

[](#chubbyphp-clean-directories)

[![CI](https://github.com/chubbyphp/chubbyphp-clean-directories/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-clean-directories/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/f92639d88c338649fd05c8b7a381b5d7d21b5868d66883d8a2297a280df7a8ff/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d636c65616e2d6469726563746f726965732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-clean-directories?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/d794df85f302b0395a1bcfab31764e1197349dac21a12f7f0a5f6a2770ff691d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d636c65616e2d6469726563746f726965732532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-clean-directories/master)[![Latest Stable Version](https://camo.githubusercontent.com/128408138924ab5257387664baccb7cd3c9c88d79d11104135d849603e260578/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636c65616e2d6469726563746f726965732f76)](https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories)[![Total Downloads](https://camo.githubusercontent.com/bb99253a627ac49ed86dba6e60e65820ed237a884a9e95b349330dba6b45c6bc/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636c65616e2d6469726563746f726965732f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories)[![Monthly Downloads](https://camo.githubusercontent.com/b327158e2f62a160251e239d358fdd7eabe69aac39fd8176b767aeb3afdc4e79/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636c65616e2d6469726563746f726965732f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories)

[![bugs](https://camo.githubusercontent.com/16578dec37e7502a7103be2928a8d5654a612d01ec4c7cfc5f098a2ffbb24a79/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![code_smells](https://camo.githubusercontent.com/c258bf246416427b7de2abffe74a06e814377461befc198460a0d3a846a812c0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![coverage](https://camo.githubusercontent.com/040573910a9d7aa89fdd306cb67c42cadeaa81ebc9f8ea9b0e8c75acdd08024d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![duplicated_lines_density](https://camo.githubusercontent.com/805a30558e25036841284f62a661e1bba52b33c2e4a913eb68f103f3955b921a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![ncloc](https://camo.githubusercontent.com/a198815df5630b73520f9719ce72590017b5f0c86b735aba613f4f9df4822243/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![sqale_rating](https://camo.githubusercontent.com/867034715cf63548cbb6848267b8442e7d598516a04ff0adf60e7ad7af9cee7b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![alert_status](https://camo.githubusercontent.com/b289ca788392c7d18d15526f3b8e44d414aa6017151c8d6aca24cfdd1c0eb7ce/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![reliability_rating](https://camo.githubusercontent.com/6bd396a3e4a9c5fb6e281e93eee2622124cedf3bd57d937a911d2b011810c0e6/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![security_rating](https://camo.githubusercontent.com/c7df3477ccd60debdd4ae68dc6987fb696eecb4026eb2f75d5bd6ac960eff6e0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![sqale_index](https://camo.githubusercontent.com/8ffc4501397504664d4875efac949a60dd2446e2f580a0830928bde854ee0060/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)[![vulnerabilities](https://camo.githubusercontent.com/a7eeb066b7bc4ef04fbcba2732b05aace487d9d5cc46f940cd2dc261a0e089c3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636c65616e2d6469726563746f72696573266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-clean-directories)

Description
-----------

[](#description)

A command to clean directories based on directoryName =&gt; directoryPath mapping.

Requirements
------------

[](#requirements)

- php: ^8.3
- [symfony/console](https://packagist.org/packages/symfony/console): ^6.4.31|^7.4.3|^8.0.3

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-clean-directories](https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories).

```
composer require chubbyphp/chubbyphp-clean-directories "^1.5.1"
```

Usage
-----

[](#usage)

```
#!/usr/bin/env php
