Releases: oladesoftware/router
fix: addGroup with middleware
release 1.1.3
fix: function addgroup: add else in foreach loop
Full Changelog: v1.1.2...v1.1.3
release 1.1.2
fix: function addgroup: remove return in foreach loop
Release 1.1.1
fix: addgroup: add name when it is integer key
release 1.1.0
what's new?
- router class will be instantiated only once throughout an application
- generate path from name when route is named
- router can run target specified as string in this format "class@method"
fix:
- route target class works both with associative array "["controller"=>"ClassName", "method"=>"functionName"]" and indexed array "["ClassName", "functionName"]"
Release 1.0.0
🚀 release 1.0.0
Release 0.1.0-alpha
🚀 RELEASE 0.1.0-alpha
What's new?
- Grouped route configuration: Easily configure many routes that have a same basepath with HTTP methods, paths, and targets
v0.0.1-alpha - Fix issue #1
This release fix:
Issue: Use call_user_func_array instead of call_user_func in src/Router.php:line 189 #1
v0.0.0-alpha - Initial Router Implementation
This release introduces the initial version (v0.0.0) of the Oladesoftware Router, a simple PHP router designed for handling HTTP routes. The router allows users to define routes with specific HTTP methods, URI paths, and corresponding targets, which can be controllers or closures. Additionally, the release includes support for middleware assignment to routes.
Key Features
- Route configuration with HTTP methods, URI paths, and targets.
- Middleware assignment to routes for enhanced request processing.
- Route matching for incoming requests, supporting parameters extraction.
- Execution of actions based on matched routes, supporting closures and controllers.
This version lays the foundation for building robust and flexible web applications with a customizable routing system. Users can define and manage their application routes efficiently, enabling clean and organized code structures.