The first PHP REST framework that is truly restful.
It runs on top of ✨ Moonlight ✨ architecture.
composer create-project pionia/pionia-app my_simple_project
Please remember to replace my_simple_project
with your project name
app
├── switches
├── services
├── authenticationBackends
├── commands
├── middlewares
├── routes.php
vendor
.gitignore
composer.json
composer.lock
index.php
pionia
README.md
settings.ini
- 📂 authenticationBackends:- This is where authentication backends should reside. These are the strategies that the app will use to authenticate users to the app context.
- 📂 middlewares:- This is where all request middlewares reside. These are the classes that run on every request and every response.
- 📂 services:- This is where our actual business logic resides.
- 📄 switches:- This is where our main app switch resides. This is where we register all our services.
- 📄 routes.php:- This is where we register our service switches
- 📄 index.php:- This is our entry file to our project.
- 📄 pionia:- This is our commandline helper. For every command, we call this file.
- 📄 settings.ini:- All settings for our entire project reside here.
After installation, just run the following to start the server
php pionia serve # http://localhost:8000
By default, the server will run on port 8000, to change that, run the following
php pionia serve -p8080 # http://localhost:8080
Your endpoint is now running on http://localhost:8000/api/v1/
You can follow along the documentation but its under active development.
You can also run php pionia
to get a list of all available commands.
All forms of contributions are welcome from documentation, coding, community development and many more.