Releases: miladrahimi/phprouter
Releases · miladrahimi/phprouter
5.1.4
5.1.3
5.1.2
Some improvemnets
5.1.1
v5.1.0
Now you can have view layer out of the box!
v5.0.2
Some bug fixing, improvement and clean ups
v5.0.1
Support PHP 8
v5.0.0
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
Mirror updates.
v4.0.8
Mirror updates.