An Action-Domain-Responder project skeleton.
PHP ApacheConf
Clone or download
pmjones Merge pull request #28 from jakejohns/feature/update-dotenv
Update josegonzalez/dotenv to 2.x
Latest commit 18edcb8 May 5, 2017
Permalink
Failed to load latest commit information.
docs
public Move /web to /public Jan 24, 2017
src use callable in index instead of classes May 13, 2015
.gitignore initial commit May 1, 2015
CHANGELOG.md prep for release Feb 1, 2017
CONTRIBUTING.md add meta-files Jun 5, 2015
LICENSE add meta-files Jun 5, 2015
README.md public, not web Feb 1, 2017
composer.json Update josegonzalez/dotenv to 2.x Apr 26, 2017
post-create-project.php

README.md

Radar

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

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 radar/project 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 public/

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.