PHPackages                             mattcolf/flex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. mattcolf/flex

ActiveLibrary[Framework](/categories/framework)

mattcolf/flex
=============

Flex is a flexible and easy to use framework.

1.0-alpha1(8y ago)01BSDPHPPHP ^7.1

Since Oct 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mattcolf/flex)[ Packagist](https://packagist.org/packages/mattcolf/flex)[ RSS](/packages/mattcolf-flex/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

Flex
====

[](#flex)

WARNING: This framework is under active development and is not yet ready for use in production.
-----------------------------------------------------------------------------------------------

[](#warning-this-framework-is-under-active-development-and-is-not-yet-ready-for-use-in-production)

A simple stack based framework that's easy to use and extend. Flex uses PSR-7 requests and responses, the PSR-11 container, and other community libraries like Fast Route, Zend Diactoros, League Container, and Whoops.

Why Flex?
---------

[](#why-flex)

Flex is a micro framework that stays out of your way and provides a minimal wrapper that allows you to write simple framework agnostic application code. Routing is based on a simple stack of application code whose only interaction with the framework is through PSR-7 request and response object.

### Component Replacement

[](#component-replacement)

All framework components can be replaced to suit the needs of the application by modifying the dependency injection container that is passed to Flex.

#### Container

[](#container)

todo

#### Request &amp; Response

[](#request--response)

todo

#### Router

[](#router)

todo

#### Not Found &amp; Not Allowed Controllers

[](#not-found--not-allowed-controllers)

todo

#### Error Handler

[](#error-handler)

todo

#### Writer

[](#writer)

todo

Getting Started
---------------

[](#getting-started)

Getting started with Flex is as simple as creating an instance of the Flux App and calling the run method. If you don't need to modify the container you can simply call the `App::create()` method to setup the application with a default container.

```
