thamaraiselvam/mysql-import
最新稳定版本:1.1.0
Composer 安装命令:
composer require thamaraiselvam/mysql-import
包简介
Import .sql file into a database using mysqli
README 文档
README
Import MySQL database backup files easily with MySQL Import
Development
Run:
$ git clone https://github.com/thamaraiselvam/mysql-import.git
$ cd mysql-import
$ composer install
This will setup the library dependencies for you.
To run tests, run
$ composer phpunit
To ensure your code is following the coding style, run
$ composer phpcs
Install
Using composer include the repository by typing the following into a terminal
composer require thamaraiselvam/mysql-import
Usage
Include the composer autoloader, import the Import namespace.
<?php
require('vendor/autoload.php');
use Thamaraiselvam\MysqlImport\Import;
$filename = 'database.sql';
$username = 'root';
$password = '';
$database = 'sampleproject';
$host = 'localhost';
new Import($filename, $username, $password, $database, $host);
统计信息
- 总下载量: 43.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 39
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-03