-
release v0.1.0 Stable
released this
2024-10-07 19:57:32 +00:00 | 23 commits to main since this releaseEnhancements to Httpcrafter
This release brings a significant restructuring of core components within the HTTP toolbox, along with the addition of a flexible routing solution. These updates enhance modularity and ease of use for developers looking to integrate individual tools.
Key Changes:
-
Refactor of Request and Response Classes
- The
Request.phpandResponse.phpfiles have been reorganized into thesrc/Http/directory, improving file structure and accessibility. - New interfaces—
RequestInterface.phpandResponseInterface.php—have been introduced, providing more flexibility for developers to implement custom request and response handling.
- The
-
Introduction of Router Class
- We've added the
Routerclass from the archived oladesoftware/router repository, which now serves as a foundational routing component within the HTTP toolbox. - The new
Routerclass is available atsrc/Router/Router.php, with corresponding tests intests/Router/RouterTest.php.
- We've added the
-
Updated Test Suite
- The directory structure for test files has been updated to align with the new organization:
tests/RequestTest.php→tests/Http/RequestTest.phptests/ResponseTest.php→tests/Http/ResponseTest.php
- The directory structure for test files has been updated to align with the new organization:
These updates further strengthen the modularity of the Httpcrafter, ensuring that each class can be used independently for a variety of use cases, while maintaining a clean and organized architecture.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-