PHPackages                             kcpt/mysqltools - 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. kcpt/mysqltools

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

kcpt/mysqltools
===============

KCPT's easy database dump/import commands for MySQL.

0.6(8y ago)229MITPHPPHP &gt;=5.6.4

Since May 2Pushed 8y ago4 watchersCompare

[ Source](https://github.com/KCPT19/laravel-mysqltools)[ Packagist](https://packagist.org/packages/kcpt/mysqltools)[ Docs](https://github.com/KCPT19)[ RSS](/packages/kcpt-mysqltools/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (7)Used By (0)

KCPT Laravel MySQL Tools
========================

[](#kcpt-laravel-mysql-tools)

This is a module for Laravel 5. This adds 3 commands to artisan:

- db:clear
- db:dump
- db:import

Installation
------------

[](#installation)

- `composer require kcpt/mysqltools`
- Edit `config/app.php` and add `KCPT\MySQLToolsServiceProvider::class` to the 'providers' array.
- run artisan commands

Usage
-----

[](#usage)

### db:clear

[](#dbclear)

[![Clear Database](https://camo.githubusercontent.com/a89f977f5044d358ea01cc7c253b61fb73540abeab69d44216631326456a72d7/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d636c6561722e706e67)](https://camo.githubusercontent.com/a89f977f5044d358ea01cc7c253b61fb73540abeab69d44216631326456a72d7/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d636c6561722e706e67)

This command deletes all tables in the current database.

### db:dump

[](#dbdump)

[![Dump the Database](https://camo.githubusercontent.com/d1f20d029e0fb1fdc213934a7b99b1b1502e4eaad88fed11cd7e91acf3e4fafe/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d64756d702e706e67)](https://camo.githubusercontent.com/d1f20d029e0fb1fdc213934a7b99b1b1502e4eaad88fed11cd7e91acf3e4fafe/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d64756d702e706e67)

This command will create a .sql dump file in the current project's folder named: db-\[environment\]-\[date\].sql

### db:import

[](#dbimport)

[![Database Import Autocomplete](https://camo.githubusercontent.com/cb87bba4b40dceea11f8fa50e7925cb0797a6f7f9995c7441e70ff4ee7e63029/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d696d706f72742d6175746f636f6d706c6574652e706e67)](https://camo.githubusercontent.com/cb87bba4b40dceea11f8fa50e7925cb0797a6f7f9995c7441e70ff4ee7e63029/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d696d706f72742d6175746f636f6d706c6574652e706e67)

This command imports the database from a .sql file. This command has autocomplete.

[![Database Imported](https://camo.githubusercontent.com/cc3f679bbd0b9f0228580b2c30d128d09f53a5141a678b6856f6dc5d8a414cb1/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d696d706f72742e706e67)](https://camo.githubusercontent.com/cc3f679bbd0b9f0228580b2c30d128d09f53a5141a678b6856f6dc5d8a414cb1/68747470733a2f2f6b63707431392e6769746875622e696f2f6c61726176656c2d6d7973716c746f6f6c732f64622d696d706f72742e706e67)

- [Github](https://github.com/KCPT19/laravel-mysqltools)
- [Github Page](https://kcpt19.github.io/laravel-mysqltools/)
- [Packagist](https://packagist.org/packages/kcpt/mysqltools)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~14 days

Total

6

Last Release

3276d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899361?v=4)[KCP Technologies, a McGraw-Hill Education Company](/maintainers/kcpt)[@kcpt](https://github.com/kcpt)

---

Top Contributors

[![kcpt-steven-kohlmeyer](https://avatars.githubusercontent.com/u/9258210?v=4)](https://github.com/kcpt-steven-kohlmeyer "kcpt-steven-kohlmeyer (13 commits)")[![fastmover](https://avatars.githubusercontent.com/u/511814?v=4)](https://github.com/fastmover "fastmover (2 commits)")

---

Tags

artisan-commandlaravellaravel-5-packageconsolelaraveldatabasemysqlcommandskcpt

### Embed Badge

![Health badge](/badges/kcpt-mysqltools/health.svg)

```
[![Health](https://phpackages.com/badges/kcpt-mysqltools/health.svg)](https://phpackages.com/packages/kcpt-mysqltools)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M283](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k18.0M46](/packages/kreait-laravel-firebase)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M169](/packages/laravel-ai)

PHPackages © 2026

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