Yii Framework 34k+
  • News
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Places
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Extensions
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • Release Cycle
    • License
    • Team
    • Official Logos and Design
Login

Yii Router 4.0 and FastRoute Adapter 4.0

Feb 25, 2025

Major versions of Yii Router and Yii Routere FastRoute Adapter adapter package were released.

Yii Router

  • Change UrlGeneratorInterface contract: on URL generation all unused arguments must be moved to query parameters, if query parameter with such name doesn't exist
  • Add debug collector for yiisoft/yii-debug
  • Add $hash parameter to UrlGeneratorInterface methods: generate(), generateAbsolute() and generateFromCurrent()
  • Replace two RouteCollectorInterface methods addRoute() and addGroup() to single addRoute()

Read more

Yii File Router 1.0.0

Jan 18, 2025

First stable version of Yii File Router was released. The package provides a convention-based router middleware that chooses controller based on its namespace and class name similar to how it was in worked in Yii2. It could be used either standalone or as a fallback for explicit router.

src
  Controller
    User
      Profile
        IndexController.php
      BlogController.php
    UserController.php
    IndexController.php

Here's how it works:

  • GET / → IndexController::index()
  • GET /user → UserController::index()
  • POST /user → UserController::create()
  • GET /user/blog/view → User/BlogController::view()

Read more

Yii Router FastRoute 3.1

Mar 19, 2024

Minor version of Yii Router FastRoute package was released.

  • added optional default host and scheme to UrlGenerator;
  • added support for psr/http-message version ^2.0.

Yii Router 3.1

Feb 20, 2024

Yii Router package was updated with the following enhancements:

  • added RouteArgument attribute for Yii Hydrator;
  • added support for psr/http-message version ^2.0.

Yii Router and FastRoute adapter 2.0

Nov 13, 2022

Major versions of Router and FastRoute adapter package were released. In this version we have raised the minimum version of PHP to 8.0. There are also several enhancements and fixes:

  • Type hints from annotations were moved to method signatures.
  • Added $queryParameters parameter to UrlGeneratorInterface::generateFromCurrent() method.
  • Added support ^4.0 version of yiisoft/middleware-dispatcher package.
  • URL generation from the current route has been fixed.

Yii Router 1.2.0

Sep 7, 2022

Yii Router package was updated with the following enhancements:

  • upgraded the yiisoft/middleware-dispatcher dependency to version 3.0.

Router and fastroute adapter 1.1.0

Jun 28, 2022

Router and its fastroute adapter were tagged. This version adds support for multiple hosts via Route::hosts() and Group::hosts():

Route::get('/')
    ->hosts(
        'https://yiiframework.com/',
        'https://yiiframework.ru/'
    );
    
Group::create()
    ->hosts(
        'https://yiiframework.com/',
        'https://yiiframework.ru/'
    );

Router and FastRoute adapter 1.0.0

Dec 30, 2021

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:

Read more

Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (48)
  • 2025 (92)
  • 2024 (80)
  • 2023 (90)
  • 2022 (82)
  • 2021 (101)
  • 2020 (64)
  • 2019 (75)
  • 2018 (32)
  • 2017 (35)
  • 2016 (30)
  • 2015 (9)
  • 2014 (6)
  • 2013 (11)
  • 2012 (14)
  • 2011 (10)
  • 2010 (10)
  • 2009 (23)
  • 2008 (5)

Popular Tags

  • yii3 387
  • extensions 233
  • release 109
  • yii2 74
  • debug 30
  • view 28
  • html 25
  • auth client 23
  • bootstrap 21
  • redis 20
  • Yii 1.1
  • Guide
  • API
  • Wiki
  • Yii 2
  • Guide
  • API
  • Wiki
  • Yii3
  • Guide
  • API
  • Cookbook
  • Terms of service
  • License
  • Contact Us
  • Supported by
  • Your donations
  • JetBrains logo
  • © 2008 - 2026 Yii (Website Source Code)