PHPackages                             mikejestes/scheezy - 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. mikejestes/scheezy

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

mikejestes/scheezy
==================

Translate yaml schema definitions into real actual databases

0.4.0(5y ago)48.5k1[1 PRs](https://github.com/mikejestes/scheezy/pulls)MITPHPPHP &gt;=7.3.0CI passing

Since Feb 5Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/mikejestes/scheezy)[ Packagist](https://packagist.org/packages/mikejestes/scheezy)[ Docs](https://github.com/mikejestes/scheezy)[ RSS](/packages/mikejestes-scheezy/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (10)Used By (0)

Scheezy
=======

[](#scheezy)

A PHP 5.3+ library to translate yaml schema definitions into real, actual databases. You could view this as an intentional anti-pattern to database migration techniques. For when you don't want to migrate up and down, just dictate the database schema.

[![Build Status](https://camo.githubusercontent.com/7b3bc099a83be26f1075d016c88c5ef3bdc74e6a3bb752dc27bec040733851f0/68747470733a2f2f7472617669732d63692e6f72672f6d696b656a65737465732f73636865657a792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mikejestes/scheezy)

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

[](#installation)

Add to your `composer.json` file:

```
    {
        "require": {
            "mikejestes/scheezy": "*"
        },

        ...
    }
```

Then download and run [composer](http://getcomposer.org/):

```
curl -s https://getcomposer.org/installer | php
php composer.phar install

```

Schema Definition Syntax
------------------------

[](#schema-definition-syntax)

```
table: store
columns:
    id:
    name:
        type: string
        length: 80
    email:
        index: unique
    active:
        type: boolean
        allow_null: true
    user_count:
        type: integer
        index: true
    website:
    created:
        type: datetime
    updated:
        type: timestamp
    calendar:
        type: date
    paragraph:
        type: text
    price:
        type: decimal
    latitude:
        type: decimal
        precision: 9
        scale: 6
    status:
        type: enum
        values:
            - approved
            - disabled
            - draft
```

A column defaults to string type, unless the name is `id` which is given an integer type, a primary key, and auto\_increment.

Database engines
----------------

[](#database-engines)

Currently supports mysql through PDO classes.

API
---

[](#api)

Load a directory of `.yaml` files

```
$pdoHandle = new PDO("mysql:host=localhost;dbname=scheezy_test", 'root', '');

$schema = new \Scheezy\Schema($pdoHandle);
$schema->loadDirectory(dirname(__FILE__) . '/schemas/');
$schema->synchronize();
```

Load a single `.yaml` file

```
$schema = new \Scheezy\Schema($pdoHandle);
$schema->loadFile('/path/to/ponys.yaml');
$schema->synchronize();
```

Alternatives
------------

[](#alternatives)

For actual migration style (up, down, rollback) try one of these:

-
-

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.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 ~394 days

Recently: every ~641 days

Total

8

Last Release

2137d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.3.0

0.4.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48138?v=4)[Mike Estes](/maintainers/mikejestes)[@mikejestes](https://github.com/mikejestes)

---

Top Contributors

[![mikejestes](https://avatars.githubusercontent.com/u/48138?v=4)](https://github.com/mikejestes "mikejestes (45 commits)")[![ebuildy](https://avatars.githubusercontent.com/u/1219817?v=4)](https://github.com/ebuildy "ebuildy (1 commits)")[![gregimba](https://avatars.githubusercontent.com/u/1413547?v=4)](https://github.com/gregimba "gregimba (1 commits)")

---

Tags

schemamysql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mikejestes-scheezy/health.svg)

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

44243.2k4](/packages/aura-sqlschema)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

2411.8k](/packages/perplorm-perpl)

PHPackages © 2026

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