saaaaaaaaasha/ubackupparser
Composer 安装命令:
composer require saaaaaaaaasha/ubackupparser
包简介
Parser csv files (database) from backup for uCoz sites.
README 文档
README
Parser csv files (database) from backup for uCoz sites. 👍
[ru] Парсер бекапов базы данных uCoz сайтов.
Installation
By composer:
$ composer require saaaaaaaaasha/ubackupparser
Usage
Create a new file (for example: index.php) and insert code which is listed below:
<?php require "vendor/autoload.php"; //not necessary $modules = [ "PhotoCategories", "Load" ]; try { // get App instance $app = \ubackupparser\App::getInstance()->init( $modules ); // get parser and run convert listed modules $parser = $app->getParser(); $parser = $parser->run(); // get results array print_r( $parser->get() ); } catch( \Exception $e ) { \ubackupparser\Util\Logger::run( $e->getMessage() ); } // or short version (modules load from config file) /* print json_encode(\ubackupparser\App::getInstance() ->init() ->getParser() ->run() ->get()); */
and run script:
$ php index.php
You can change some options (like path to dump folder, path to log file etc) in config file - /ubackupparser/src/config.php
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-23