PHPackages                             php-garb/php-garb - 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. php-garb/php-garb

ActiveLibrary

php-garb/php-garb
=================

Manage and delete massive amounts of files with just a few shell commands.

012PHP

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Grabium/PHP-GARB)[ Packagist](https://packagist.org/packages/php-garb/php-garb)[ RSS](/packages/php-garb-php-garb/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-GARB
========

[](#php-garb)

Welcome to the php-garb. PHP-Garb is a script that enable mananger garbage files through alias of directories. The developer can make a backup (save function) and after generate a lot residue, call a folder cleaning (clear function) deleting only files not saved on backup.

---

Download
--------

[](#download)

You can get'it of 2 way:

1. [Download scrit from Github](#DownloadCodeFromGithub)
2. [Using Composer](#UsingComposer) (recommended)

### 1. Dowload Code From GitHub

[](#1-dowload-code-from-github)

- **Download:** Try the link [https://github.com/Grabium/PHP-GARB](https://github.com/Grabium/PHP-GARB/) and go to `code`/`download zip`. For optmize the use, rename the file *'garb.php'* to *'garb'* (without extenssion) for decrease command text on shell terminal. And use code on shel `rm Garb/Lists/null`.

### 2. Using Composer

[](#2-using-composer)

- **Install Composer:** It's possible to get information on the [getcomposer.org/download/](https://getcomposer.org/download/).
- **Require:** Use the command on Shell terminal: `composer require php-garb/php-garb` .
- **Move application to root of project:** You must move the file *garb.php* and folder *Garb* to the root of you project. It will be located at *vendor/garb-php/garb-php/*. Set the Shell on root directory and try `mv vendor/php-garb/php-garb/garb.php garb && mv vendor/php-garb/php-garb/Garb Garb && rm Garb/Lists/null`.

---

QuickStart
----------

[](#quickstart)

Alias is the backup name that refer to directory that will be handled. All operations use it. First, you owe to garantee the folder has files that will be saved. Then you can [save alias folder](#save). After this you cold [update](#update), [clear folder](#clear), and others.

### 1 - Help

[](#1---help)

Get informations about commands, arguments and other details, locate the terminal in the same local of garb (garb.php) and try: `php garb` or `php garb help`.

### 2 - Save

[](#2---save)

This function will be save a alias for refer the folder and scan folder to save names of you files (NOT CONTENTS, BUT NAMES). This names will prevent delete this listeds on function clear. Use: `php garb save directory/folder as alias`.

### 3 - Clear

[](#3---clear)

Clear function work for delete the files not saveds in the folder that was passed as argument. Use: `php garb alias`.

###  Health Score

15

—

LowBetter than 5% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4a4ea21f24d3c758fe5018231c612ff97d77f47c498e7456efb2ae1f9972e27?d=identicon)[Grabium](/maintainers/Grabium)

---

Top Contributors

[![Grabium](https://avatars.githubusercontent.com/u/110872805?v=4)](https://github.com/Grabium "Grabium (21 commits)")

### Embed Badge

![Health badge](/badges/php-garb-php-garb/health.svg)

```
[![Health](https://phpackages.com/badges/php-garb-php-garb/health.svg)](https://phpackages.com/packages/php-garb-php-garb)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
