-
0.5.0 tools, not rules Stable
released this
2026-09-02 22:32:13 +02:00 | 1 commits to release since this releaseWhat's new ?
This release aligns the library to "tools, not rules" philosophy: components are now flexible utilities with sensible defaults or fully customise.
- Added
Routeclass to serve as a route container Routerclass has been rewritten to be more configurableRequestclass has been rewritten as a object-oriented wrapper around PHP's superglobalsResponseclass has been rewritten as a object-oriented container to store and manipulate HTTP response
Breaking change
RouterFacadehas been removed. It was introduced in release 0.4.0- All interfaces have been removed. They imposed a contract instead of offer tools which not align with new philosophy
Standalone usage
Each class can be downloaded and used independently.
Note:Routerdepends onRoute. If you only needRouter, grabRoute.phptoo.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Added
-
RouterFacade Stable
released this
2025-07-02 00:26:59 +02:00 | 19 commits to develop since this releaseWhat's new
RouterFacadeclass
Introduced a new
RouterFacadeclass to provide a simplified interface for route registration, pattern mapping and route path generation.Bug fixes
- Pattern mapping fix
Full Changelog: https://github.com/oladesoftware/httpcrafter/compare/v0.3.0...v0.4.0
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
released this
2025-07-01 18:47:56 +02:00 | 21 commits to develop since this releaseUpdate existing generatePath() method in the Router class to generate paths with dynamic values. This should allow developers to create URLs with parameters or dynamic segments without manually concatenating strings.
Example:
Assuming dynamic segment userID
$router->generatePath('profile', [ 'userID' => 123 ]);
Output: '/account/profile/123'Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
released this
2025-01-14 14:14:14 +01:00 | 24 commits to develop since this release- Set ? to allow nullable for name parameter for Router->addRoute()
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Set PHP minimum requirement Stable
released this
2025-01-02 18:51:36 +01:00 | 25 commits to develop since this releaseRequire PHP 8.2 and greater
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
released this
2024-12-09 21:40:29 +01:00 | 26 commits to develop since this releaseWhat's new?
- Add redirection method to Response class
Usage:
// Redirect to the specified URL with a 301 Moved Permanently status code $response->redirect('https://www.example.com', 301); // Redirect to the specified URL with a 302 Moved Temporary status code $response->redirect('/new-page', 302);Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
released this
2024-10-10 19:33:21 +02:00 | 27 commits to develop since this releaseRefactor Response Content-Length handling and add interfaces for Authenticator and Authorization
- Moved Content-Length calculation logic to a private
updateContentLength()method to improve encapsulation and reusability. - Updated
send()method to call theupdateContentLength()method before sending the headers. - Introduced interfaces for
AuthenticatorandAuthorizationto standardize authentication and authorization mechanisms.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Moved Content-Length calculation logic to a private
-
released this
2024-10-08 22:11:34 +02:00 | 28 commits to develop since this releaseRelease Notes for v0.1.2
- Hotfix: Fixed the calculation of the Content-Length header in the Response class to ensure accurate length is set based on the body content.
- Issue Addressed: Previous implementation incorrectly calculated the Content-Length using strlen() on the length itself instead of the actual content length.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
release v0.1.1 Stable
released this
2024-10-08 00:35:13 +02:00 | 29 commits to develop since this releasehotfixes: Content-Length calculation based on type
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
release v0.1.0 Stable
released this
2024-10-07 21:57:32 +02:00 | 31 commits to develop 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
-