n1215 / simple-adr
A PSR-15 / PSR-17 compatible simple Action-Domain-Responder pattern example.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 2
Open Issues: 0
Type:project
Requires
- php: ^7.2
- ext-json: *
- laminas/laminas-diactoros: ^2.2
- laminas/laminas-httphandlerrunner: ^1.1
- psr/http-factory: ^1.0
- psr/http-server-handler: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.0
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-12-11 22:41:07 UTC
README
A dead simple Action-Domain-Responder pattern example with no framework. Compatible with PSR-15 HTTP Server Request Handlers and PSR-17 HTTP Factories.
Usage
Install
composer create-project n1215/simple-adr
Start server
cd simple-adr
php -S localhost:8000 -t public
and access
Directory structure
- entry point: public/index.php
- Action: \N1215\SimpleAdr\Action\UserShowAction
- Domain: \N1215\SimpleAdr\Domain\UserShowUseCase
- Responder: \N1215\SimpleAdr\Responder\UserShowJsonResponder
License
The MIT License (MIT). Please see LICENSE for more information.