• v0.1.0 a2f71ef617

    ahokponou released this 2024-10-07 19:57:32 +00:00 | 23 commits to main since this release

    Enhancements 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.php and Response.php files have been reorganized into the src/Http/ directory, improving file structure and accessibility.
      • New interfaces—RequestInterface.php and ResponseInterface.php—have been introduced, providing more flexibility for developers to implement custom request and response handling.
    • Introduction of Router Class

      • We've added the Router class from the archived oladesoftware/router repository, which now serves as a foundational routing component within the HTTP toolbox.
      • The new Router class is available at src/Router/Router.php, with corresponding tests in tests/Router/RouterTest.php.
    • Updated Test Suite

      • The directory structure for test files has been updated to align with the new organization:
        • tests/RequestTest.phptests/Http/RequestTest.php
        • tests/ResponseTest.phptests/Http/ResponseTest.php

    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.

    Full Changelog

    Downloads