A skeleton application for the Slytherin framework

Creates Slytherin-based applications with simple code structure.

View source code on Github

Basilisk is a skeleton application exclusively for the Slytherin framework. It enables developers to create new PHP projects with easy to understand code structure and tries to follow SOLID principles.

Installation

Install Basilisk via Composer:

$ composer create-project rougin/basilisk:dev-master "acme"

Getting Started

Running migrations and seeds

Before running the migrations/seeds, kindly update the database credentials first in .env.

$ vendor/bin/phinx migrate -c app/config/phinx.php
$ vendor/bin/phinx seed:run -c app/config/phinx.php

NOTE: Running seed:run will load the seeders in alphabetical order.

Running the application using PHP's built-in web server

$ php -S localhost:8000 -t app/public

Now open your web browser and go to http://localhost:8000.

What's inside?

PackageDescription
Authsumyet another PHP authentication library
Bladea templating engine provided by Laravel
Dotenvloads environment variables from .env to getenv()
Phinxa PHP database migrations for everyone
Slytherinan extensible and SOLID-based micro-framework
Valitrona simple, elegant, stand-alone validation library
Weasleygenerators and helpers for the Slytherin framework

Testing

$ vendor/bin/phpunit