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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pionia-app

Pionia Application (pionia/pionia-app)

Official Pionia v3 application template. Moonlight REST API on PHP 8.5+ with AppRealm bootstrap, CLI, optional Vite frontend, and optional RoadRunner workers.

Create a project

Default URL: http://127.0.0.1:8000/ (environment/.env → PORT; [roadrunner] in settings.ini uses the same default).

API (Moonlight)

Register services in switches/MainSwitch.php. Dispatch with JSON:

Endpoint Method Purpose
/api/v1/ping GET Framework health check
/api/v1/ POST Service actions

Use path helpers in code — not hard-coded strings: apiVersionPath(), apiPingPath(), apiBase().

Directory layout

middlewares/, authentications/, and commands/ are created when you run make:middleware, make:auth, or make:command.

Base classes (extend these)

Kind Class
Switch Pionia\Http\Switches\ApiSwitch
Service Pionia\Http\Services\Service
Authentication Pionia\Auth\Authentication
Middleware Pionia\Middlewares\Middleware
Command Pionia\Console\Command

Frontend (optional)

CORS for :5173 is preconfigured in environment/settings.ini.

Background work

Post-response tasks (logging, webhooks) — not a new thread; runs after the client gets JSON:

Requires composer require react/promise. Durable jobs (email, reports) use RoadRunner Jobs — see Background work.

RoadRunner (persistent workers)

RoadRunner packages ship in require-dev. After composer install:

Enable Moonlight jobs in environment/settings.ini ([jobs] ENABLED=true) when using the jobs pool.

Port resolution: CLI --port → .env PORT / SERVER_PORT → [roadrunner] in settings.ini → .rr.yaml → 8000.

Production: switch jobs.pipelines.moonlight to redis in .rr.yaml and set [jobs] ENABLED=true.

Production performance (OPcache, opt-in)

Performance files are not shipped in the default template. Run once on deploy:

This installs bootstrap/preload.php, environment/php.ini.production.example, and [performance] in settings.ini, then generates storage/bootstrap/preload.php.

RoadRunner without global php.ini:

API documentation

Document actions with @moonlight-* PHPDoc on service classes:

Remove the path repository before publishing a Packagist release (consumers install core from Packagist).

Documentation

Resource URL
User guides pionia.netlify.app
Helpers (defer, Porm, cache, …) Helpers
Framework architecture PioniaCore AGENTS.md
This app AGENTS.md (short app notes)

Requirements


All versions of pionia-app with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-pdo Version *
pionia/pionia-core Version ^3.0
react/promise Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pionia/pionia-app contains the following files

Loading the files please wait ...