Skip to content

[v1.4.0] - Universal Infrastructure & Quality Assurance

Latest

Choose a tag to compare

@alphp alphp released this 07 Jul 18:28
· 1 commit to main since this release

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 Request Class: Encapsulated path normalization, dynamic REQUEST_BASE calculation, 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.php by extracting global environment definitions into constants.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.