PHPackages                             smart-php/mysql-scheman - 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. smart-php/mysql-scheman

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

smart-php/mysql-scheman
=======================

MySQL schema synchronizer. A simple way to handle MySQL schema without writing MySQL query

0.0.5(4y ago)5951MITPHPPHP &gt;=5.3.0

Since Oct 26Pushed 4y ago2 watchersCompare

[ Source](https://github.com/shabeer-ali-m/mysql-scheman)[ Packagist](https://packagist.org/packages/smart-php/mysql-scheman)[ RSS](/packages/smart-php-mysql-scheman/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

MySQL Scheman
=============

[](#mysql-scheman)

MySQL schema, a simple MySQL schema synchronization utility. This will create an UPDATE/ADD query automatically based on the schema difference in the database and schema file.

[![Build](https://github.com/shabeer-ali-m/mysql-scheman/workflows/PHP%20Composer/badge.svg)](https://github.com/shabeer-ali-m/mysql-scheman/workflows/PHP%20Composer/badge.svg)

### Why we use MySQL Scheman

[](#why-we-use-mysql-scheman)

Developers find it very hard to synchronize MySQL schema while developing any application. The current conventional method is to create an SQL file with all the changes &amp; update it in the staging/production server. The main demerit of this method is if there are multiple people and multiple SQL changes on the same table the process is a bit hectic. In order to solve this, we developed a platform where you can update the schema in a file, and by running sync to database it will create the SQL Query for the changes and it will execute.

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

[](#installation)

If you use Composer, you can install MySQL Scheman with the following command: `composer require smart-php/mysql-scheman`

Or alternatively, include a dependency for MySQL Scheman in your composer.json file. For example

```
{
    "require-dev": {
        "smart-php/mysql-scheman": "dev-master"
    }
}
```

### Config

[](#config)

A database configuration file should be there to communicate with the database. Please see the sample files and create a copy in your working directory with your database credentials.

JSON: config.json.example XML: config.xml.example

### Usage (CLI)

[](#usage-cli)

To CLI Help

```
./vendor/bin/scheman --help
```

Exporting Database to Schema File:

```
./vendor/bin/scheman --config config.json --export yourdatabase.json
```

Sync the file schema with your database

```
./vendor/bin/scheman --config config.json --sync yourdatabase.json
```

License
-------

[](#license)

See the `LICENSE` file.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~62 days

Total

5

Last Release

1780d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dbcacb0f4f56464269c44f61304aec5c8286c8e8cb94f2329f4bb5213e0693f?d=identicon)[shabeer-ali-m](/maintainers/shabeer-ali-m)

---

Top Contributors

[![shabeer-ali-m](https://avatars.githubusercontent.com/u/7569963?v=4)](https://github.com/shabeer-ali-m "shabeer-ali-m (8 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

phpschemadatabasemysqlsyncdatabase-schemaschemansmart-php

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/smart-php-mysql-scheman/health.svg)

```
[![Health](https://phpackages.com/badges/smart-php-mysql-scheman/health.svg)](https://phpackages.com/packages/smart-php-mysql-scheman)
```

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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