Skip to content

uzulla/bleeding

 
 

Repository files navigation

Bleeding Edge PHP 8 Framework

Caution: This framework and PHP 8 is under development. You should not use in production!

Introduction

  • 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

Developer Install

  • 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"}

About

Bleeding Edge PHP 8 Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.1%
  • Other 0.9%