php-garb/php-garb

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

dev-main 2024-07-12 18:25 UTC

This package is auto-updated.

Last update: 2025-04-12 20:05:43 UTC


README

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

You can get'it of 2 way:

  1. Download scrit from Github
  2. Using Composer (recommended)

1. Dowload Code From GitHub

  • Download: Try the link 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

  • Install Composer: It's possible to get information on the 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

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. After this you cold update, clear folder, and others.

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

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

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