Skip to content

thamaraiselvam/mysql-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL Importer

ViewCount

Packagist Packagist Packagist GitHub tag (latest SemVer) GitHub Travis

Buy Me A Coffee

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);