danilocgsilva/backupphp
Composer 安装命令:
composer require danilocgsilva/backupphp
包简介
Generates a sql file entirely trough php code
README 文档
README
Generates a sql backup entirely by php code
Install
composer require danilocgsilva/backupphp
Usage
Once you've installed the package in your project, just call:
\Danilocgsilva\Backupphp::backup('mysql_host', 'mysql_user', 'database_name', 'password', 'full_server_path_to_store_sql_files', (optional)'database_prefix', (optional)'database_encoding');
Security Notice
There's no security checkings after the backup method is called! It was thought out to serve as an api function, so after entering the parameters in the backup() method, you must make your own security filtering.
Where it was already successfully tested
- Recovering a basic WordPress database.
- Recovering a 60mb database serving several system, including some wordpresses and drupal installations. Not tested the systems after restoring, but that was no error on restoring.
ToDo
Provides a csrf_token to put some security in html forms.
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-17