Download the PHP package pionia/pionia-app without Composer
On this page you can find all versions of the php package pionia/pionia-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pionia/pionia-app
More information about pionia/pionia-app
Files in pionia/pionia-app
Package pionia-app
Short Description Making Restful API development more restful π€
License MIT
Informations about the package pionia-app
πPionia Frameworkπ
Pionia Framework is a PHP framework for building RESTFUL APIs. It is a lightweight framework that is easy to use and easy to understand.
It runs on top of β¨ Moonlight β¨ architecture.
Creating a project
Please remember to replace project_name
with your project name
Directory
- π authentication:- 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.
- π commands:- This is where all our commandline commands reside.
- π environment:- This is where all our environment settings reside.
- π storage:- This is where all our storage files reside.
- π static:- This is where all our static files reside. Default files found here should never be deleted.
- π vendor:- This is where all our composer dependencies reside.
- π .gitignore:- This is where we specify files that should not be tracked by git.
- π composer.json:- This is where we specify all our composer dependencies.
- π composer.lock:- This is where we specify all our composer dependencies.
- π pionia:- This is our commandline helper. For every command, we call this file.
- π public:- This is where our public files reside. This is where our entry file resides.
- π switches:- This is where our main app switch resides. This is where we register all our services.
- π pionia:- This is our commandline helper. For every command, we call this file.
- π README.md:- This is our documentation file. This is where we document our project.
- π bootstrap:- This is where our application bootstrapping files reside. This is where we register all our routes.
After installation, just run the following to start the server
By default, the server will run on port 8000, to change that, run the following
Your endpoint is now running on http://localhost:8080/api/v1/
Official Documentation
You can follow along the documentation but its under active development.
You can also run to get a list of all available commands.
If you're making any http requests from your frontend, we recommend using the jet-fetch
library.
However, other framework-specific packages are still okay like the z-fetch
for z-js
and axios
.
In the root of your project, run :-
NPM
YARN
Then use the moonlightRequest
method of the package to query any moonlight-powered backend.
For details about jet-fetch
, follow the readme guide provided here.
Contributions
All forms of contributions are welcome from documentation, coding, community development and many more.