Skip to content

Releases: il4mb/Routing

0.2.0-alpha

06 Jan 18:51

Choose a tag to compare

Leak Release

16 Feb 08:25

Choose a tag to compare

Full Changelog: 0.1.20...0.1.21

Stable Release

28 Jan 17:12

Choose a tag to compare

Full Changelog: 0.1.0...0.1.20

Fisrt Release

13 Jan 12:51
c0b7f10

Choose a tag to compare

Release Notes: v0.1.0

🎉 First Release of Routing! 🎉

This marks the initial release of the Routing project. With version v0.1.0, the foundation has been laid for a robust and scalable routing solution. Below are the key highlights of this release:


🚀 Key Features

  • Core Functionality:
    Implements the core routing mechanism, ensuring reliable and efficient path resolution.

  • Documentation:
    An introductory README to help users get started with the project.


📁 Repository Highlights

  • Codebase Structure:
    The repository includes organized source code for seamless navigation and future development.

  • Examples:
    Initial example use cases to demonstrate core functionality.

     use Il4mb\Routing\Map\Route;
     use Il4mb\Routing\Http\Method;
    
     class Controller
     {
         #[Route(Method::GET, "/")]
         function index() {
             echo "Hello World";
         }
     }
     $router = new Router();
     $router->addRoute($controller);

    with middleware

    use Il4mb\Routing\Map\Route;
    use Il4mb\Routing\Http\Method;
    use Il4mb\Routing\Http\Request;
    use Il4mb\Routing\Http\Response;
    use Il4mb\Routing\Middlewares\Middleware;
    use Il4mb\Routing\Router;
    
    class AdminAware implements Middleware {
        function handle(Request $request, Closure $next): Response {
            /**
             * Do logic here
             */
            return $next($request);
        }
    }
    
    class Controller
    {
    
       ...
    
        #[Route(Method::GET, "/admin", [AdminAware::class])]
        function admin() {
            echo "Hello Admin";
        }
    }
    
    $router = new Router();
    $router->addRoute($controller);

    Dispath route

    $response = $router->dispatch(Request::getInstance());
    echo $response->send();

🎯 What's Next?

The roadmap includes the following goals for future versions:

  1. Improved routing performance.
  2. Integration with popular frameworks or platforms.
  3. Advanced features like dynamic routes, middleware support, and caching.
  4. Comprehensive unit testing and CI/CD workflows.

We’re excited to have you join us on this journey. Feel free to contribute, suggest features, or report issues to help make this project better! 🚀

🔗 Repository Link: [Routing on GitHub](https://github.com/il4mb/Routing)


Tag: v0.1.0
📅 Release Date: January 13, 2025