Home - smeeckaert/Orm GitHub Wiki
ORM Wiki
Installation
Clone the depot and add the Orm namespace in your autoloader.
Then put database informations in your application bootstrap.
$dsn = 'mysql:dbname=YOUR_DB;host=YOUR_HOST';
$user = 'YOUR USER';
$password = 'YOUR_PASSWORD';
\Orm\DB::init($dsn, $user, $password);
Documentation
Things to know
Orm will always protect your strings and row/table names when building queries, you don't need to do it.