radar / project
An Action-Domain-Responder project skeleton.
Installs: 477
Dependents: 0
Suggesters: 0
Security: 0
Stars: 158
Watchers: 13
Forks: 12
Open Issues: 1
Type:project
Requires
- php: >=7.4
- josegonzalez/dotenv: ~2.0
- laminas/laminas-diactoros: ~2.2
- radar/adr: ~2
- relay/middleware: ~1.0
Requires (Dev)
- pds/skeleton: ~1.0
This package is auto-updated.
Last update: 2024-11-06 14:43:54 UTC
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
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.