czogori / rentgen
Database abstraction layer for information and manipulation schema
v0.9.1
2013-12-07 07:46 UTC
Requires
- php: >=5.3.2
- symfony/config: 2.4.*@dev
- symfony/dependency-injection: 2.4.*@dev
- symfony/event-dispatcher: 2.4.*@dev
- symfony/filesystem: 2.4.*@dev
- symfony/finder: 2.4.*@dev
- symfony/yaml: 2.4.*@dev
This package is not auto-updated.
Last update: 2026-03-13 21:48:55 UTC
README
Database abstraction layer for both information and manipulation schema
Installation
Using composer:
{ "require": { "czogori/rentgen": "dev-master" } }
Basic usage
Create sample table
$rentgen = new Rentgen(); $manipulation = $rentgen->createManipulationInstance(); $table = new Table('foo'); $table->addColumn(new StringColumn('bar')); $table->addColumn(new IntegerColumn('baz', array('not_null' => true))); $manipulation->create($table);
Get information about foo table
$info = $rentgen->createInfoInstance(); $fooTable = $info->getTable(new Table('foo'));