• This repository has been archived on 28/Mar/2023
  • Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    PHP
  • Created over 10 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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