PHPackages                             riesenia/cakephp-routing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. riesenia/cakephp-routing

ActiveCakephp-plugin[Framework](/categories/framework)

riesenia/cakephp-routing
========================

CakePHP plugin for routing by attributes

v1.3.0(1y ago)02.4k—0%2MITPHPPHP ^8.1CI passing

Since Jul 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/riesenia/cakephp-routing)[ Packagist](https://packagist.org/packages/riesenia/cakephp-routing)[ RSS](/packages/riesenia-cakephp-routing/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Overview
--------

[](#overview)

The `riesenia/cakephp-routing` package allows you to define routes using class attributes in your controllers. These routes are then compiled into a `routes_compiled.php` file, which is included in your application's `routes.php` file.

Configuration
-------------

[](#configuration)

if you want to add routes for controllers not in the default app namespace `APP`, pass `namespace` option to the command

```
routes:build -n Plugin
```

Defining routes
---------------

[](#defining-routes)

1. Define your class routes using the `Resources` attribute.

```
