webkernel/config
Webkernel Config Documentation
On this page
Welcome to the Webkernel Config package documentation. Webkernel Config is a compiled configuration package with automatic change detection.
Documentation Index
- Architecture & Fingerprint Engine
- Pre-compiled O(1) flat dictionary
- Automatic change detection & fingerprinting
- Atomic OPcache invalidation
- Configuration & Options
- Value retrieval & default handling
- Nested branch extraction
- Runtime mutation and persistence
- Package Provider & Asset Publishing
ServiceProvider::CONFIGstructure- Publishing manifest &
Config::publishables() - Package configuration overrides
- Immutability & Guard System
- Key protection rules
- Prefix tree matching
- Exception handling
- Benchmark & Profiling Guide
- First-load and repeated-lookup measurements
- Sub-microsecond latency profiling
- Filesystem and OPcache measurement conditions
Quick Reference
use Webkernel\Config\Config;
// Get a configuration value
$name = config('app.app.name');
// Get with fallback
$timeout = config('database.timeout', 30);
// Set and persist runtime configuration
Config::set('app.maintenance', false);
// Protect key tree against runtime mutation
Config::protect(['platform', 'app.secret']);
// Inspect publishable package assets
$publishables = Config::publishables('courier-config');