alankoroma/nucleon

A Simple light-weight Framework based on the Hexagonal Architecture

1.0.0 2017-03-26 08:08 UTC

README

A Simple light-weight Framework based on the Hexagonal Architecture with PHP Unit Test, PHP Unit Database Test, Database Migration, View Templating and Authentication.

Installation

Install dependencies with Composer

composer install

Create a .env file and configure with System settings. An Example .env.example has been provided. Database driver can be either sqlite or mysql. Update phinx.yml with database settings

If your database driver is mysql create a new MYSQL Database called nucleon and a test Database called test_nucleon

Run all migrations (check phinx.yml for more migration environments)

vendor/bin/phinx migrate

or (SQLite)

vendor/bin/phinx migrate -e production_sqlite

to specify an environment