Caution: This framework and PHP 8 is under development. You should not use in production!
- PHP 8 Ready!
- Thin framework
- No nikic/fast-route
- No route parameters
- GET & POST HTTP method only(RESTful is too complex)
- Functional controller(No Instance or state needed)
- Controller attributes(Method, Path, Middlewares)
- Functional command with attributes, powered by Silly
- Accepts
application/json
first,multipart/form-data
second - returns only
application/json
- PHP Standard Recommendation(PSR) first
- PSR-3 Log ready, powered by monolog
- PSR-4 Autoload ready, powered by composer v2
- PSR-7, PSR-17 HTTP ready, powered by laminas-diactoros
- PSR-11 DI ready, powered by PHP-DI 7(beta)
- PSR-12 ready, powered by PHP CodeSniffer
- PSR-15 RequestHandler, Middleware ready, powered by Relay
- clone this repository
- Install mkcert
- Install docker & docker-compose in any style
# installs TLS certification
$ mkcert "*.example.com"
Created a new certificate valid for the following names ๐
- "*.example.com"
Reminder: X.509 wildcards only go one level deep, so this won't match a.b.example.com โน๏ธ
The certificate is at "./_wildcard.example.com.pem" and the key at "./_wildcard.example.com-key.pem" โ
$ cp *.pem container/nginx/
$ cp .env.example .env
$ docker-compose up -d
$ docker-compose exec workspace composer install --ignore-platform-req=php
# add `docker-ip bleeding.example.com` to hosts file
$ vi /etc/hosts
$ curl https://bleeding.example.com
{"Hello":"world"}