定制 php-garb/php-garb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-garb/php-garb

Composer 安装命令:

composer require php-garb/php-garb

包简介

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

README 文档

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.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-06