PHPackages                             0plus1/patchr - 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. 0plus1/patchr

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

0plus1/patchr
=============

MySQL version control

v1.0.0(9y ago)2240[1 issues](https://github.com/0plus1/patchr/issues)1MITPHPPHP &gt;=5.5.9

Since Mar 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/0plus1/patchr)[ Packagist](https://packagist.org/packages/0plus1/patchr)[ RSS](/packages/0plus1-patchr/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (4)Used By (1)

[![overview-wide](https://cloud.githubusercontent.com/assets/420815/23929498/c9fccaca-097a-11e7-82c3-07df37ddc32a.jpg)](https://cloud.githubusercontent.com/assets/420815/23929498/c9fccaca-097a-11e7-82c3-07df37ddc32a.jpg)

Patchr - MySQL version control
==============================

[](#patchr---mysql-version-control)

Patchr allows you to version control your database changes, allowing teams to easily share and review database changes.

Database version control is a very important process of modern web development, providing an accurate history of schema and data changes. Most modern frameworks offers database agnostic version control under the term *"migrations"*.

Patchr uses a different approach, allowing you to commit **raw** SQL, more compatible with legacy system and easier to understand by new devs coming onboard.

Patchr is developed with deployment in mind, exposing a comprehensive command line API and it is currently used in some large scale corporate applications.

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

[](#documentation)

[Patchr on Gitbook](https://0plus1.gitbooks.io/patchr/)

Tests
-----

[](#tests)

`./vendor/bin/phpunit`System wide installs of phpunit might not work due to potentially different versions, please rely on above command.

Frameworks
----------

[](#frameworks)

Patchr is framework agnostic, it can easily be added to any existing framework/project. These are the official wrappers for commonly used frameworks:

- Laravel ([0plus1/patchr-laravel](https://github.com/0plus1/patchr-laravel))

Roadmap
-------

[](#roadmap)

- Decouple Model class from Mysqli to create adapters for other RDBMS
- Expand unit tests coverage

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3327d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/420815?v=4)[Davide](/maintainers/0plus1)[@0plus1](https://github.com/0plus1)

---

Top Contributors

[![0plus1](https://avatars.githubusercontent.com/u/420815?v=4)](https://github.com/0plus1 "0plus1 (19 commits)")

---

Tags

databasedatabase-changesmysql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/0plus1-patchr/health.svg)

```
[![Health](https://phpackages.com/badges/0plus1-patchr/health.svg)](https://phpackages.com/packages/0plus1-patchr)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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