A simple php application bundled with php activerecord and slim framework by using composer.
⎋ php -v
PHP 5.4.9 (cli) (built: Aug 21 2013 01:12:03) Copyright (c) 1997-2013 The PHP GroupOpen the file activerecord.config.php in congig/ folder and edit the following lines.
$cfg->set_connections(
array(
'development' => 'mysql://root@localhost/test',
#'development' => 'mysql://root:root@localhost/test',
#'test' => 'mysql://username:password@localhost/test_database_name',
#'production' => 'mysql://username:password@localhost/production_database_name'
)
);You are ready to start by having a look to the examples.