Router and FastRoute adapter 1.0.0
Both router and its FastRoute adapter went stable. These are very central packages in Yii3.
The package provides PSR-7 compatible request routing and a PSR-15 middleware ready to be used in an application. Instead of implementing routing from ground up, the package provides an interface for configuring routes and could be used with an adapter package. Currently, the only adapter available is FastRoute.
Router has the following features:
- URL matching and URL generation supporting HTTP methods, hosts, and defaults.
- Good IDE support for defining routes.
- Route groups with infinite nesting.
- Middleware support for both individual routes and groups.
- Ready to use middleware for route matching.
- Convenient
CurrentRoute
service that holds information about last matched route. - Out of the box CORS middleware support.
You can find more details in the package readme. A guide-style documentation about Yii3 routing will be available a bit later.
As with other Yii3 packages, we achieved great tests coverage including mutation testing and full static analysis with Psalm strctest level. Such quality standards allow us to build further packages based on the routing with a very high confidence.
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- view
- auth client
- html
- bootstrap
- release
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- gii
- twig
- queue
- runner
- http 客户端
- console
- validation
- sphinx
- cache
- widget
- translator
- hydrator
- error handler
- db
- symfonymailer
- log
- http
- config
- assets
- swiftmailer
- 图书
- imagine
- csrf
- elasticsearch
- swagger
- IDE
- i18n
- router
- definitions
- fastroute
- logging
- smarty
- user