PHPackages                             pionia/pionia-app - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pionia/pionia-app

ActiveProject[API Development](/categories/api)

pionia/pionia-app
=================

Making Restful API development more restful 💤

v2.0.2(1y ago)9642MITPHPPHP &gt;=8.1

Since May 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PioniaPHP-project/Application)[ Packagist](https://packagist.org/packages/pionia/pionia-app)[ RSS](/packages/pionia-pionia-app/feed)WikiDiscussions v2.x-dev Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (13)Used By (0)

🚀Pionia Framework🚀
==================

[](#pionia-framework)

[![Pionia Logo](/static/favicon.png)](/static/favicon.png)

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
------------------

[](#creating-a-project)

```
composer create-project pionia/pionia-app project_name
```

Please remember to replace `project_name` with your project name

Directory
---------

[](#directory)

```
|-authentications
|-bootstrap
|----application.php
|----routes.php
|-commands
|-environment
|----.env
|----settings.ini
|-middlewares
|-public
|-- .htaccess
|-- index.php
services
static
|-- favicon.png
|-- pionia_logo.webp
|-- favicon.ico
|-- bootstrap.min.css
storage
|-- cache
|-- logs
|-- scripts
vendor
.gitignore
composer.json
composer.lock
pionia
README.md
```

> 1. 📂 authentication:- This is where authentication backends should reside. These are the strategies that the app will use to authenticate users to the app context.
> 2. 📂 middlewares:- This is where all request middlewares reside. These are the classes that run on every request and every response.
> 3. 📂 services:- This is where our actual business logic resides.
> 4. 📂 commands:- This is where all our commandline commands reside.
> 5. 📂 environment:- This is where all our environment settings reside.
> 6. 📂 storage:- This is where all our storage files reside.
> 7. 📂 static:- This is where all our static files reside. Default files found here should never be deleted.
> 8. 📂 vendor:- This is where all our composer dependencies reside.
> 9. 📄 .gitignore:- This is where we specify files that should not be tracked by git.
> 10. 📄 composer.json:- This is where we specify all our composer dependencies.
> 11. 📄 composer.lock:- This is where we specify all our composer dependencies.
> 12. 📄 pionia:- This is our commandline helper. For every command, we call this file.
> 13. 📂 public:- This is where our public files reside. This is where our entry file resides.
> 14. 📄 switches:- This is where our main app switch resides. This is where we register all our services.
> 15. 📄 pionia:- This is our commandline helper. For every command, we call this file.
> 16. 📄 README.md:- This is our documentation file. This is where we document our project.
> 17. 📂 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

```
php pionia serve  # http://localhost:8000
```

By default, the server will run on port 8000, to change that, run the following

```
 php pionia serve --port 8080 # http://localhost:8080
```

Your endpoint is now running on

Official Documentation
----------------------

[](#official-documentation)

You can follow along the documentation but its under active development.

[Go to documentation here](https://pionia.netlify.app/)

You can also run ` php pionia` 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

```
npm install jet-fetch
```

YARN

```
yarn add jet-fetch
```

Then use the `moonlightRequest` method of the package to query any moonlight-powered backend.

```
import { Jet } from 'jet-fetch';
const jet = new Jet({
  baseUrl: 'http://localhost:8000/api/',
});

// unauthenticated requests
const res = await jet.moonlightRequest(
    {
           service: 'yourService',
           action: 'yourAction',
           ...anyOtherData
    }, 'v2/');

// for jwt-authenticated requests
const res = await jet.secureMoonlightRequest(
        {
               service: 'yourService',
               action: 'yourAction',
               ...anyOtherData
        }, 'v2/');
```

For details about `jet-fetch`, follow the [readme guide provided here.](https://github.com/OSCA-Kampala-Chapter/jet-fetch?tab=readme-ov-file#about-jet-fetch-library)

Contributions
-------------

[](#contributions)

All forms of contributions are welcome from documentation, coding, community development and many more.

### 🔥🔥🔥 Goodluck, and happy coding 🔥🔥🔥

[](#-goodluck-and-happy-coding-)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Recently: every ~22 days

Total

11

Last Release

593d ago

Major Versions

v1.1.3 → v2.0.02024-09-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3d430d2f1c9bd847d9d85419a91b53e148a01b8b4fca462d197bf5703a7a93b?d=identicon)[jet2018](/maintainers/jet2018)

---

Top Contributors

[![jet2018](https://avatars.githubusercontent.com/u/43230268?v=4)](https://github.com/jet2018 "jet2018 (39 commits)")

---

Tags

fastframeowrkmoonlightphp-fpmphp-frameworkphp8restful

### Embed Badge

![Health badge](/badges/pionia-pionia-app/health.svg)

```
[![Health](https://phpackages.com/badges/pionia-pionia-app/health.svg)](https://phpackages.com/packages/pionia-pionia-app)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
