Application bootstrap helpers for PHP 8.4+ β config loading, DI container and PHP runtime setup.
π Documentation
Narrative user guides (FR + EN), with examples:
- π¬π§ English documentation
- π«π· Documentation franΓ§aise
You are currently browsing the auto-generated API reference (phpDocumentor).
π Features
- βοΈ Config loading & merging (TOML + PHP arrays) β
initConfig(). - π¦ PHP-DI container building from definitions β
initContainer(),initDefinitions(). - π PHP runtime setup β
initDefaultTimezone(),initErrors(),initMemoryLimit(),setIniIfExists(). - π§© Plain free functions, autoloaded β no framework lock-in.
- π§ͺ 100% unit-test line coverage.
π¦ Installation
This library requires PHP 8.4+ and is installed via Composer:
composer require oihana/php-init
π§Ύ License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
π€ About the Author
- Name: Marc ALCARAZ (aka eKameleon)
- Website: www.ooop.fr
- Email: marc@ooop.fr
π Related packages
- oihana/php-files β file, path and TOML config helpers used to load configuration.
- oihana/php-enums β strongly-typed constant enumerations (
IniOptions, β¦). - oihana/php-reflect β reflection utilities and exception types.
π Project on GitHub
View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-init.