Download the PHP package chani/safi-core without Composer
On this page you can find all versions of the php package chani/safi-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chani/safi-core
More information about chani/safi-core
Files in chani/safi-core
Download chani/safi-core
More information about chani/safi-core
Files in chani/safi-core
Vendor chani
Package safi-core
Short Description Core Package for Safi Microframework
License proprietary
Package safi-core
Short Description Core Package for Safi Microframework
License proprietary
Please rate this library. Is it a good library?
Informations about the package safi-core
Safi Core (safi-core)
Core package for the Safi Microframework (PHP 8.5+). Built around pure constructor injection, explicit composition root wiring, an HTTP context pipeline, attribute routing, and driver contracts.
Architecture Principles
1. Pure Constructor Injection (Assembler)
- No Service Locators: Controllers and services never pull from a global container. All dependencies are explicitly declared in constructors via PHP 8.5 property promotion.
- Composition Root: The
Assembleris used exclusively during application startup (init.inc.phpor CLI entry points) to wire components together deterministically.
2. HTTP Pipeline & Context (Context)
- Combines
Request,Response, andLoggerInterfaceinto a strictContextobject flowing through theMiddlewarePipeline. - Eliminates messy parameter lists and keeps infrastructure concerns out of domain logic.
3. Attribute Routing (#[Route])
- Routes are defined via PHP attributes directly on controller methods.
- Unauthenticated requests are redirected or rejected by authentication middleware configured in the pipeline.
Package Layout
License
Distributed under the MIT License. Author: Jean Bruenn
All versions of safi-core with dependencies
PHP Build Version
Package Version
The package chani/safi-core contains the following files
Loading the files please wait ...