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:
- Download scrit from Github
- 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 shelrm 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.
php-garb/php-garb 适用场景与选型建议
php-garb/php-garb 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 php-garb/php-garb 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 php-garb/php-garb 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-06