Slim & Eloquent

The Slim PHP micro framework paired with Laravel's Illuminate Database toolkit.

Getting started

# Download composer
curl -s https://getcomposer.org/installer | php

# Install project dependencies
php composer.phar install

Edit the database configuration in app/config.php to match your settings.

Now set your server's document root to the public/ directory.

The end.

Database Migration and Seeding

The novice script provides a primitive means of migrating and seeding the database. Follow the UserMigration.php and UserSeed.php templates located in app/database/ for your own migrations/seeds.

To migrate and seed your database:

# Migrate
php novice migrate

# Seed
php novice seed

# Migrate then seed
php novice migrate --seed

Note: These just run whatever is in the run() function of each seed or migration. There's no support for updating or rolling back unless you put it there.

Documentation

Slim framework

http://docs.slimframework.com

Eloquent ORM

http://laravel.com/docs/eloquent

and

https://github.com/illuminate/database/blob/master/README.md