PHPackages                             javanile/mysql-import - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. javanile/mysql-import

ActiveLibrary[Database &amp; ORM](/categories/database)

javanile/mysql-import
=====================

Import SQL file from command-line

0.0.16(5y ago)23.1k[2 issues](https://github.com/javanile/mysql-import/issues)1MITPHPCI failing

Since Mar 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/javanile/mysql-import)[ Packagist](https://packagist.org/packages/javanile/mysql-import)[ RSS](/packages/javanile-mysql-import/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (1)Versions (12)Used By (1)

javanile/mysql-import
=====================

[](#javanilemysql-import)

[![StyleCI](https://camo.githubusercontent.com/f924deb5e2c1d8a2b23db93e721b49600797a163f5fca11fbf30089e77cc4970/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135393430353435332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/159405453)[![Build Status](https://camo.githubusercontent.com/a0fb818cab003de147183da2599bf5b50d08e188b5c9eb5d89c5cfba12284198/68747470733a2f2f7472617669732d63692e6f72672f6a6176616e696c652f6d7973716c2d696d706f72742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/javanile/mysql-import)[![codecov](https://camo.githubusercontent.com/32fab23fb5a4bcf59317e231505b59ce2465caa31888c0b2a1f6e51a2cd53f7f/68747470733a2f2f636f6465636f762e696f2f67682f6a6176616e696c652f6d7973716c2d696d706f72742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/javanile/mysql-import)[![Codacy Badge](https://camo.githubusercontent.com/0da6c7ee5408aebc0c06b6dc50142f85903e48039c75c59565f27cc432f526c7/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6533613462613864396566653437313239613266373436313833333462613265)](https://www.codacy.com/app/francescobianco/mysql-import?utm_source=github.com&utm_medium=referral&utm_content=javanile/mysql-import&utm_campaign=Badge_Grade)

The best way to import SQL file on your database.

Get started
-----------

[](#get-started)

```
$ composer require javanile/mysql-import
```

```
$ ./vendor/bin/mysql-import database.sql
```

Testing
-------

[](#testing)

```
$ docker-compose up -d mysql
```

```
$ docker-compose run --rm composer install
```

```
$ docker-compose run --rm phpunit tests
```

TDD
---

[](#tdd)

```
$ docker-compose run --rm phpunit tests --filter ::testLoader
```

```
$ docker-compose run --rm phpunit tests --stop-on-failure
```

```
docker-compose run --rm php ./bin/mysql-import ./tests/fixtures/database.sql -psecret -utest --do-while
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Recently: every ~105 days

Total

7

Last Release

2062d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfcf9cbb771639cb55ace06465f23a78b09ae6cd4bf662dd7830b771458659ca?d=identicon)[francescobianco](/maintainers/francescobianco)

---

Top Contributors

[![francescobianco](https://avatars.githubusercontent.com/u/472171?v=4)](https://github.com/francescobianco "francescobianco (109 commits)")

---

Tags

mysqlmysql-importphpsql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javanile-mysql-import/health.svg)

```
[![Health](https://phpackages.com/badges/javanile-mysql-import/health.svg)](https://phpackages.com/packages/javanile-mysql-import)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
