-
Notifications
You must be signed in to change notification settings - Fork 10
Getting started
iNem0o edited this page Oct 8, 2013
·
2 revisions
The best way to install PicORM is to do it from Composer
.
Create a composer.json
file to the root of your webapp with this content
{
"require": {
"picorm/picorm": "0.0.2"
}
}
and then, install composer
and download PicORM
curl -sS https://getcomposer.org/installer | php
php composer.phar install
Once you include composer autoload, you juste have to configure your datasource and options
\PicORM\Entity::configure(array(
'datasource' => new PDO('mysql:dbname=database;host=localhost', 'user', 'password')
));