euskadi31 / schema
SQL Schema manager
Installs: 259
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 2
pkg:composer/euskadi31/schema
Requires
- php: >=5.3.3
 - doctrine/dbal: ~2.3
 - symfony/console: ~2.3
 - symfony/finder: ~2.3
 - symfony/process: ~2.3
 - symfony/yaml: ~2.3
 
Requires (Dev)
- atoum/atoum: dev-master
 
This package is not auto-updated.
Last update: 2025-10-25 20:31:29 UTC
README
Feature
- MySQL only (more next time).
 - Schema file format json and yaml.
 - Dump current database schema to json, yaml and sql format.
 
Schema
Json format (schema.json)
{
    "config": {
        "driver": "pdo_mysql",
        "host": "127.0.0.1",
        "port": "3306",
        "dbname": "demo",
        "user": "demo",
        "password": "demo",
        "charset": "utf8"
    },
    "schemas": []
}
Yaml format (schema.yml)
config: driver: pdo_mysql host: 127.0.0.1 port: '3306' dbname: demo user: demo password: demo charset: utf8 schemas: ~
Usage
Create database schema.
php schema.phar create
Update database schema.
php schema.phar update --force
Dump database schema.
php schema.phar dump --format=sql