Download the PHP package orbiter/satellite-app without Composer
On this page you can find all versions of the php package orbiter/satellite-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download orbiter/satellite-app
More information about orbiter/satellite-app
Files in orbiter/satellite-app
Package satellite-app
Short Description Easy to use Event & Middleware Mini-Framework, powered by popular projects and PSR's
License MIT
Informations about the package satellite-app
Orbiter\Satellite
Easy to use Event & Middleware Framework, powered by popular micro-libraries and based on PSRs.
- Setup
- Config
- Implemented PSRs
- Packages
- Download Build
- License
Supports PHP 8.1+ and composer
TL;DR
Quick-Jump into develop:
Open your browser on: http://localhost:3333
Look into files:
- app config and wiring
assemble.php
composer autoload, gathers configurations and creates the system modules from that configlaunch.php
runsassemble()
and dispatches theSatelliteApp
eventapp
folder with a basic commands and route handler structure
Setup
Install app skeleton and dependencies with composer in folder satellite
:
Run with:
- Linux, PHP Dev Server
- PHP Command-Line
- Docker, docker-compose
- Web-Server
Linux, PHP Dev Server
Setup correct user rights, then start and open http://localhost:3333
PHP Command-Line
Execute defined commands.
Docker, docker-compose
Includes configurable PHP Dockerfile with:
- PHP 8.1
- with FPM and a few extensions
- reusing FPM for a clean CLI worker image
- OPCache
- PostgreSQL Client libs (using
pdo
) - NGINX base image for local routing
- customize in Dockerfile
- a more "production" ready image, preconfigured for building docker-compose--prod.yml
For docker image configs see files in _nginx
.
Start containers specified in http://localhost:3333
Web-Server
On a web-server the web/index.php
file serves as public entry point.
Apache: point server/vhost root to /web
and use the included .htaccess
NGINX: example files in _nginx.
Config
Use e.g. .env
to add configuration.
Default's config includes:
- env var
env
: if in production or not in production- with value
prod
it is assumed in the App (not the framework) that it is in production - use
$_ENV['env'] === 'prod'
to check for production - for dev-error pages: add var
dev.editor
with one value ofPrettyPageHandler::EDITOR_*
to linkwhoops
"open file" with IDE
- with value
/config/config.php
- main config- configures which other config files are included
- aggregates and caches the config for production usage
/config/dependencies.php
- definitions for PHP-DI/config/events.php
- define app components flow/config/pipeline.php
- setup PSR middlewares and pipeline
PSRs
This app serves as mini-framework, with PSR powered libraries, ready-to-use Annotations and not much more.
It is build upon PSRs and popular, specialized packages implementing them or other great stuff.
- PSR-3 - Logger
- 📦
monolog/monolog
- more implementations
- 📦
- PSR-4 - autoload classes and forget
require_once
- handled by composer, more in composer docs.
- PSR-1,12 - Code Style Guides
- except brackets location rule: same-line instead of next-line for opening
{
- except brackets location rule: same-line instead of next-line for opening
- PSR-6 - Cache
- 📦
cache/filesystem-adapter
- includes
FilesystemCachePoolNormalized
forDoctrine\Common\Annotations\PsrCachedReader
compatibility - more implementations
- 📦
- PSR-7 - HTTP Message
- 📦
nyholm\psr7
- request and response data definitions
- used further by
PSR-15
,PSR-17
andPSR-18
- 📦
- PSR-11 - Container for InterOp
- 📦
php-di/php-di
- service container for ease and modularity
- dependency injection with
@Annotations
,@var
PHPDoc and Reflection support
- 📦
- PSR-14 - Event Dispatcher and Listener
- 📦
orbiter/satellite
- as the core of how things are put together
- 📦
- PSR-15 - HTTP Handlers
- 📦
orbiter/satellite-response
- handle route requests with a powerful middleware pipeline
- 📦
- PSR-16 - Simple Cache
- 📦
cache/filesystem-adapter
- more implementations
- 📦
- PSR-17 - HTTP Factories
- 📦
nyholm\psr7
- context about request
- for request & response initiations
- 📦
- PSR-18 - HTTP Client
- 📦
guzzlehttp/guzzle
- send requests to other APIs
- more implementations
- 📦
📦 = included in
satellite-app
template
Packages
orbiter/satellite
- implements PSR-14 Event Dispatcher and Listener
- with invoker to execute anything, PSR-11 compatible
- optional event-handler based profiling
- see package repository
orbiter/satellite-console
- console execution
- console command annotations
- uses getopt-php
- see package repository
orbiter/satellite-response
- middleware pipe execution
- implements PSR-15 through
equip/dispatch
, PSR-11 compliant - implements PSR-7,17 through
nyholm/psr7
andnyholm/psr7-server
- with simple emitter by
narrowspark/http-emitter
- see package repository
orbiter/satellite-route
- routes by annotations
- uses nikic/fast-route as router
- made for PSR middleware usage, but not limited
- see package repository
orbiter/annotations-util
- annotations by
doctrine/annotations
with cached reflections - get classes, methods and properties which are annotated
- see AnnotationsUtil
- annotations by
orbiter/satellite-whoops
- Whoops error display for CLI and Routes
- only when
$_ENV['env']
notprod
(configurable inassemble.php
)
orbiter/satellite-config
- simple config aggregator with caching
- see package repository
orbiter/satellite-launch
SatelliteApp
event data objects- see package repository
orbiter/satellite-system
- system setup and core wire-up, e.g. from
$config
to a cached PSR container - see package repository
- system setup and core wire-up, e.g. from
A lot of work for APIs is done by PSR-15 HTTP Middleware, find more awesome middlewares.
Download Build
There is no downloadable version - see Setup on how to install with composer.
We use composer as package manager, like in any modern PHP project.
Feel free to reach out for a training request.
License
This project is free software distributed under the MIT License.
Contributors
By committing your code to the code repository you agree to release the code under the MIT License attached to the repository.
Maintained by Michael Becker
All versions of satellite-app with dependencies
ext-json Version *
psr/container Version ^1.0|^2.0
psr/cache Version ^1.0|^2.0
psr/event-dispatcher Version ^1.0
psr/http-server-middleware Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-message Version ^1.0
orbiter/satellite Version ~0.4.0
orbiter/satellite-route Version ~0.3.0
orbiter/satellite-launch Version ~0.1.1
orbiter/satellite-console Version ~0.5.0
orbiter/satellite-response Version ~0.1.3
orbiter/satellite-config Version ~0.2.1
orbiter/satellite-system Version ~0.0.1
orbiter/annotations-util Version ~0.6.2
middlewares/request-handler Version ^2.0.0
middlewares/payload Version ^3.0.0
php-di/php-di Version ^6.4.0
vlucas/phpdotenv Version ^5.5.0
monolog/monolog Version ^3.2.0
guzzlehttp/guzzle Version ^7.5.0
cache/filesystem-adapter Version ^1.2