ORM for PHP
Empower your PHP applications
by giving them a light and simple ORM
Datajar is a simple and easy-to-use ORM for PHP. Say goodbye to your lengthy configuration files and difficult migrations, Datajar will do this transparently for you.
$myclass = new Class(); $myclass->save();
Datajar integrates directly with your projects by mapping classes on to database tables or documents. Thus you can focus on programming and leave out all the schema niceties.
class MyClass extends DatajarBase
{
protected $testvar;
function __construct()
{
$this->testvar = DatajarType::int();
}
}
Support for MySQL, SQLite and MongoDB is already implemented. Database drivers are easy to write and new ones are coming up.