2017 © Pedro Peláez
 

library simplex

Modular, micro framework for PHP 7

image

simplex/simplex

Modular, micro framework for PHP 7

  • Wednesday, March 7, 2018
  • by freddiefrantzen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 75 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage, (*1)

Simplex Framework

Note: This is a work-in-progress and the APIs will very likely change without warning, (*2)

What is Simplex?

A modular, micro framework build on top of the PHP-DI dependency injection container and the Symfony Router., (*3)

  • Lightweight
  • Modular
  • Code and convention over excessive configuration
  • Compatible with PSR-7 middleware
  • Out-of-box support for console commands
  • Controllers as first-class citizens
  • Supports route annotations
  • Built-in caching
  • Doctrine ORM integration (can be replaced with ORM of your choice)
  • Hateoas serializer integration

Installation

Install with composer, (*4)

$ composer create-project simplex/quickstart -s dev

Once installed, create a .env file in the root directory (see the .env.dist template)., (*5)

The quickstart demo requires a Mysql database. This can be created by running the following command, (*6)

$ composer init-db

Now start a webserver, (*7)

$ php -S 0.0.0.0:8080 -t public public/app.php

And point your browser to http://localhost:8080/, (*8)

Documentation

See the quickstart for a demo module as well as Factories for Doctrine ORM and Hateoas serializer., (*9)

Roadmap

  • Provide support for defining routes in code

The Versions