Releases: il4mb/Routing
0.2.0-alpha
Full Changelog: 0.1.21...v0.2.0-alpha
Leak Release
Full Changelog: 0.1.20...0.1.21
Stable Release
Full Changelog: 0.1.0...0.1.20
Fisrt Release
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:
- Improved routing performance.
- Integration with popular frameworks or platforms.
- Advanced features like dynamic routes, middleware support, and caching.
- 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