Skip to content

Releases: miladrahimi/phprouter

5.1.4

06 Sep 10:32
2d394bd
Compare
Choose a tag to compare

Some improvements!

5.1.3

19 Apr 06:39
Compare
Choose a tag to compare

Fix Issue #44

5.1.2

24 Dec 10:50
2efa3b2
Compare
Choose a tag to compare

Some improvemnets

5.1.1

20 Dec 20:29
676cda6
Compare
Choose a tag to compare

Add $router->all() method.
#42

v5.1.0

07 Feb 13:21
26d77f4
Compare
Choose a tag to compare

Now you can have view layer out of the box!

v5.0.2

07 Feb 11:27
e6d51a3
Compare
Choose a tag to compare

Some bug fixing, improvement and clean ups

v5.0.1

30 Jan 22:22
Compare
Choose a tag to compare

Support PHP 8

v5.0.0

30 Jan 18:44
f8c06d7
Compare
Choose a tag to compare

New major version!
The whole package is rewritten with clean code and OOP and simplicity in mind.
Everything is ready for new features!
Change log:

  • Integrated with a to handle the package dependencies and your application ones
  • Middleware and controller parameters will be resolved from the IoC container.
  • You can bind any dependency and resolve it by controller a parameter
  • Controller constructors now can get dependencies including current request, route, etc.
  • Index routes by method to find the appropriate route faster
  • The 'Controller@method' syntax changed to [Controller::class, 'method']
  • The new controller syntax applied to Middelware as well
  • Url class added to generate URLs from a route name and parameters (you can get an instance by a controller parameter)
  • Route class added to get all the current route attributes (you can get an instance by a controller parameter)
  • Chained method feature removed.
  • Functions (Not closures) could not be controller anymore.
  • Namespace prefix removed (not necessary because of the new syntax)
  • Namespace and domain parameters removed from route definition (available only in group attributes)
  • PSR-7 request and response upgraded from Zend to Laminas

v4.0.9

24 Dec 21:05
Compare
Choose a tag to compare

Mirror updates.

v4.0.8

24 Dec 20:47
Compare
Choose a tag to compare

Mirror updates.