2017 © Pedro Peláez
 

library slytherin

An extensible and SOLID-based PHP micro-framework.

image

rougin/slytherin

An extensible and SOLID-based PHP micro-framework.

  • Wednesday, July 4, 2018
  • by rougin
  • Repository
  • 4 Watchers
  • 6 Stars
  • 3,988 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 21 Versions
  • 4 % Grown

The README.md

Slytherin

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-coverage] Total Downloads, (*1)

Slytherin is a simple and extensible PHP micro-framework that tries to achieve a SOLID-based design for creating web applications. It uses Composer as the dependency package manager to add, update or even remove external packages., (*2)

Background

In the current state of PHP ecosystem, the mostly used PHP frameworks like Symfony and Laravel provide a great set of tools for every PHP software engineer. While the said PHP frameworks provide a kitchen-sink solution for every need (e.g., content management system (CMS), CRUD, etc.), they are sometimes overkill, overwhelming at first, or sometimes uses a strict directory structure., (*3)

With this, Slytherin tries an alternative approach to only require the basic tools like HTTP and Routing and let the application evolve from a simple API tool to a full-featured web application. With no defined directory structure, Slytherin can be used to mix and match any structure based on the application's requirements and to encourage the use of open-source packages in the PHP ecosystem., (*4)

Basic Example

Below is an example code for creating a simple application using Slytherin:, (*5)

``` php // app/web/index.php, (*6)

use Rougin\Slytherin\Application;, (*7)

// Load the Composer autoloader ---- $root = dirname(dirname(DIR));, (*8)

require "$root/vendor/autoload.php"; // ---------------------------------, (*9)

// Create a new application instance --- $app = new Application; // -------------------------------------, (*10)

// Create a new HTTP route --- $app->get('/', function () { return 'Hello world!'; }); // ---------------------------, (*11)

// Then run the application after --- echo $app->run(); // ----------------------------------, (*12)


Kindly check the [The First "Hello World"][link-wiki-example] page in the wiki for more information in the provided sample code above. ## Upgrade Guide As Slytherin is evolving as a micro-framework, there might be some breaking changes in its internal code during development. The said changes can be found in the [Upgrade Guide][link-wiki-upgrade] page. ## Changelog Please see [CHANGELOG][link-changelog] for more information what has changed recently. ## Testing To check all written test cases, kindly install the specified third-party packages first: ``` bash $ composer request filp/whoops --dev $ composer request league/container --dev $ composer request nikic/fast-route --dev $ composer request phroute/phroute --dev $ composer request rdlowrey/auryn --dev $ composer request twig/twig --dev $ composer request zendframework/zend-diactoros --dev $ composer request zendframework/zend-stratigility --dev $ composer test

Credits

Slytherin is inspired by the following packages below and their respective implementations. Their contributions improved my understanding of writing frameworks and creating application logic from scratch:, (*13)

License

The MIT License (MIT). Please see LICENSE for more information., (*14)

The Versions

04/07 2018

dev-master

9999999-dev https://rougin.github.io/slytherin

An extensible and SOLID-based PHP micro-framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

solid php framework php library barebones slytherin extensible framework

23/02 2018

v0.9.5

0.9.5.0 https://github.com/rougin/slytherin

Yet another extensible PHP micro-framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library slytherin

07/02 2018

v0.9.4

0.9.4.0 https://github.com/rougin/slytherin

Yet another extensible PHP micro-framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library slytherin

05/02 2018

v0.9.3

0.9.3.0 https://github.com/rougin/slytherin

Yet another extensible PHP micro-framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library slytherin

27/10 2017

v0.9.2

0.9.2.0 https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library barebones slytherin extensible framework

21/07 2017

v0.9.1

0.9.1.0 https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library barebones slytherin extensible framework

07/07 2017

v0.9.0

0.9.0.0 https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

php framework php library barebones slytherin extensible framework

10/02 2017

dev-file-structure

dev-file-structure https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php library mvc extensible barebones slytherin

18/01 2017

dev-readme

dev-readme https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php library mvc extensible barebones slytherin

08/09 2016

v0.8.0

0.8.0.0 https://github.com/rougin/slytherin

Yet Another Extensible PHP Library/Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php library mvc extensible barebones slytherin

19/02 2016
07/02 2016
01/02 2016
14/01 2016

v0.4.0

0.4.0.0 https://github.com/rougin/slytherin

An Extensible PHP Library/Framework For The Courageous And Fearless

  Sources   Download

MIT

The Requires

 

The Development Requires

php library mvc extensible barebones slytherin

02/11 2015

v0.3.0

0.3.0.0 https://github.com/rougin/slytherin

An Extensible PHP Library/Framework For The Courageous And Fearless

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php library mvc extensible barebones slytherin

23/07 2015

v0.2.1

0.2.1.0

A simple and extensible PHP library for creating small projects

  Sources   Download

MIT

The Requires

 

by Rougin Gutib
by Angel Refamonte

php library mvc extensible barebones

21/06 2015

v0.2.0

0.2.0.0

A simple and extensible PHP library for creating small projects

  Sources   Download

MIT

The Requires

 

by Rougin Gutib
by Angel Refamonte

php library mvc extensible barebones

17/06 2015

v0.1.0

0.1.0.0

A simple and extensible PHP library for creating small projects

  Sources   Download

MIT

The Requires

 

by Rougin Gutib
by Angel Refamonte

library mvc extensible barebones