This release marks the transition from a functional architecture to a robust, professional-grade infrastructure. Version 1.4.0 focuses on code reliability, formalizing the request lifecycle, and establishing an automated testing pipeline.
🛠 Core Infrastructure Improvements
- Formal
RequestClass: Encapsulated path normalization, dynamicREQUEST_BASEcalculation, and security protocols (dotfile/folder blocking) into a dedicated, testable object. - Decoupled
Router(IoC): The routing engine is now a pure infrastructure component. It utilizes Inversion of Control to handle error views and maintains a constant O(1) performance using native PHP null-coalescing operations. - Bootstrap Refactoring: Simplified
bootstrap.phpby extracting global environment definitions intoconstants.php, creating a clean, linear execution flow for the Front Controller.
✅ Quality Assurance & Testing
- Automated Testing Suite: Integrated PHPUnit with a comprehensive set of tests for the routing and security logic, ensuring the server-agnostic architecture remains stable across updates.
- CI/CD Pipeline: Implemented GitHub Actions to automatically validate every push and pull request across multiple PHP versions (8.3, 8.4, and 8.5), ensuring continuous compatibility.
- PSR-4 Compliance: Standardized namespace autoloading for both production (
src/) and testing (tests/) environments via Composer.
🔒 Security & Agnosticism
- Application-Level Security: Reinforced protection against sensitive file access (.env, .git, .config) by delegating 404 handling directly to the application layer.
- Server Consistency: Validated identical behavior across LAMP (Apache) and IIS environments by centralizing Content Security Policy (CSP) headers within the Page Controller response cycle.