silnex / sir-updater
该包的最新版本(dev-master)没有可用的许可证信息。
dev-master
2020-03-31 01:42 UTC
Requires
- php: ^7.0
This package is auto-updated.
Last update: 2024-09-29 05:36:05 UTC
README
这是一个自动更新그누보드(GnuBoard)的包。
支持环境
- PHP 7.0版本及以上
- 그누보드 5.4版本及以上
安装
该包必须安装在其公开文件夹的上级目录下。
使用Composer进行安装
cd public_html/../
composer require silnex/sir-updater
直接下载的方法
cd public_html/../
git clone -b with-vendor --single-branch https://github.com/SilNex/sir-updater
使用方法
基本使用方法
<?php require_once 'vendor/autoload.php'; use silnex\SIRUpdater\Updater; $updater = new Updater('/your/public/html/directory'); $updater->update();
选项和方法
$updater = new Updater('/your/public/html/directory'); /** * @param bool $force = 변경사항을 무시하고 덮어씌우기 * @param bool $withClear = 업데이트를 완료하고 업데이트에 사용된 파일 삭제 */ $updater->update(true, true); $update->restore(); // 업데이트시 생성된 backup으로 복구 $update->diffCheck(); // 현재 버전의 원본과 다른 파일 정보를 가져옴
待办事项
- 使init过程更简单
- 添加选项说明