The core utilities and base classes for the Chaos Framework.
Includes support for configuration, console commands, sockets, and framework bootstrapping.
Require via Composer:
composer require chaoswd/core
- Configuration loader (
Config::loadFromPath()
) - Environment variable support via
chaos/dotenv
- Console command kernel (
chaos
CLI)- Currently has 3 commands. More in the works.
- Socket server foundation
- Base support classes for Chaos applications
Example bootstrap (skeleton project):
<?php
use Chaos\Dotenv\Dotenv;
use Chaos\Core\Support\Config;
new Dotenv();
Config::loadFromPath(__DIR__ . '/../config');
echo config('app.name'); // output the value listed with the key 'name' from config/app.php
Run the console kernel:
php chaos help
- Command auto-discovery
- Extended socket server events
- Service container
- Middleware layer
- Additional Commands
See CHANGELOG.md for version history.
This package is open-sourced software licensed under the MIT license.