Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Releases: oladesoftware/router

fix: addGroup with middleware

05 Jun 22:34

Choose a tag to compare

release 1.1.3

29 Apr 19:47

Choose a tag to compare

fix: function addgroup: add else in foreach loop

Full Changelog: v1.1.2...v1.1.3

release 1.1.2

29 Apr 19:37

Choose a tag to compare

fix: function addgroup: remove return in foreach loop

Release 1.1.1

29 Apr 17:16

Choose a tag to compare

fix: addgroup: add name when it is integer key

release 1.1.0

22 Apr 23:12

Choose a tag to compare

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

22 Apr 07:21

Choose a tag to compare

🚀 release 1.0.0

Release 0.1.0-alpha

22 Feb 00:08

Choose a tag to compare

🚀 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

14 Dec 19:40

Choose a tag to compare

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

05 Dec 23:18

Choose a tag to compare

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.