alankoroma / nucleon
A Simple light-weight Framework based on the Hexagonal Architecture
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- dflydev/fig-cookies: ^1.0
- fguillot/picodb: ^1.0
- nesbot/carbon: ^1.21
- ramsey/uuid: ^3.5
- robmorgan/phinx: ^0.6.4
- simplon/mysql: ^1.3
- slim/slim: ^3.5
- slim/twig-view: ^2.1
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/dbunit: ^2.0
- phpunit/phpunit: ^5.5
This package is not auto-updated.
Last update: 2023-02-04 16:48:12 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