PHPackages                             grafite/database - 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. grafite/database

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

grafite/database
================

A handy set of commands for MySQL databases

v2.11.0(2mo ago)45.9k↑392.9%[2 issues](https://github.com/GrafiteInc/Database/issues)1MITPHPPHP &gt;=8.2CI failing

Since Apr 6Pushed 2mo agoCompare

[ Source](https://github.com/GrafiteInc/Database)[ Packagist](https://packagist.org/packages/grafite/database)[ RSS](/packages/grafite-database/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (11)Versions (27)Used By (1)

[![Grafite Database](GrafiteDatabase-banner.png)](GrafiteDatabase-banner.png)

**Database** - A set of handy commands, and operations for MySQL databases.

[![Build Status](https://github.com/GrafiteInc/Database/actions/workflows/php-package-tests.yml/badge.svg?branch=main)](https://github.com/GrafiteInc/Database/actions/workflows/php-package-tests.yml)[![Maintainability](https://camo.githubusercontent.com/5f930fa90d0ecdc3d9429f14acf44bb209bdfab10cfdca9a91d5ba60c31db21c/68747470733a2f2f716c74792e73682f6261646765732f37323436333033642d646165652d343630612d386331352d3836363861666565396162652f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/GrafiteInc/projects/Database)[![Packagist](https://camo.githubusercontent.com/320c88e2e69164447ee91f2445a7f4455475cdb549b73459d6f381c20b503bb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261666974652f64617461626173652e737667)](https://packagist.org/packages/grafite/database)[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/grafite/database)

The Grafite Database package is a collection of commands and systems to help with MySQL related concerns in developing including: creating databases, dropping them, backing them up and restoring them and more.

##### Author(s):

[](#authors)

- [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), mattlantz at gmail dot com)

Requirements
------------

[](#requirements)

1. PHP 7.2+|8.0+

Compatibility and Support
-------------------------

[](#compatibility-and-support)

Laravel VersionPackage TagSupported^11.x - ^12.x3.xyes^6.x - ^11.x2.xno^6.x - ^7.x1.xno### Installation

[](#installation)

Start a new Laravel project:

```
composer create-project laravel/laravel your-project-name
```

Then run the following to add Grafite Database

```
composer require "grafite/database"
```

Documentation
-------------

[](#documentation)

License
-------

[](#license)

Grafite Database is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

### Bug Reporting and Feature Requests

[](#bug-reporting-and-feature-requests)

Please add as many details as possible regarding submission of issues and feature requests

### Disclaimer

[](#disclaimer)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance73

Regular maintenance activity

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity79

Established project with proven stability

 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 ~91 days

Recently: every ~188 days

Total

25

Last Release

88d ago

Major Versions

v1.0.0 → v2.0.02020-06-03

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v2.9.2PHP &gt;=7.2|&gt;=8.0

v2.11.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/81d026d950739c978b844ac79e6b454e7fedc95ceffdcc4da09893c2497c7255?d=identicon)[mlantz](/maintainers/mlantz)

---

Top Contributors

[![mlantz](https://avatars.githubusercontent.com/u/1065551?v=4)](https://github.com/mlantz "mlantz (85 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grafite-database/health.svg)

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k24.4M244](/packages/spatie-laravel-backup)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[spatie/laravel-db-snapshots

Quickly dump and load databases

1.2k3.1M25](/packages/spatie-laravel-db-snapshots)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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