simplex/simplex

Modular, micro framework for PHP 7

0.2.1 2020-05-04 21:09 UTC

This package is auto-updated.

Last update: 2024-04-05 06:17:19 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

Simplex Framework

Note: This is a work-in-progress and the APIs will very likely change without warning

What is Simplex?

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

  • 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

$ composer create-project simplex/quickstart -s dev

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

The quickstart demo requires a Mysql database. This can be created by running the following command

$ composer init-db

Now start a webserver

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

And point your browser to http://localhost:8080/

Documentation

See the quickstart for a demo module as well as Factories for Doctrine ORM and Hateoas serializer.

Roadmap

  • Provide support for defining routes in code