elevenone/radar.zombie
A sample project for killing time and building an application using adr
Requires
- php: >=5.5.0
- radar/adr: ~1.0
- relay/middleware: ~1.0
- josegonzalez/dotenv: ~1.0
- zendframework/zend-diactoros: ~1.0
- aura/view: ^2.2
- filp/whoops: ^2.1
README
Radar is a PSR-7 compliant Action-Domain-Responder (ADR) system. While it may look like a micro-framework, it is more like a wrapper around the real core of your application domain.
Installing Radar.zombie
You will need Composer to install Radar.
Pick a project name, and use Composer to create it with Radar; here we create
one called example-project
:
composer create-project -s dev elevenone/radar.zombie example-project
Confirm the installation by changing into the project directory and starting the built-in PHP web server:
cd example-project
php -S localhost:8080 -t web/
You can then browse to http://localhost:8080/ and see JSON output:
{"phrase":"Hello world"}
You can also browse to http://localhost:8080/your-name and see modified JSON output:
{"phrase":"Hello your-name"}
Documentation
You can read the documentation here. https://www.youtube.com/watch?v=yEc48QfkFcY&feature=youtu.be
GOOD https://slides.mwop.net/2015-04-10-PSR7-in-the-Middle/#/15