PHPackages                             websupply/route-annotation - 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. [API Development](/categories/api)
4. /
5. websupply/route-annotation

AbandonedArchivedNeos-package[API Development](/categories/api)

websupply/route-annotation
==========================

0.0.3(3y ago)33.2k[3 issues](https://github.com/wbsply/route-annotation/issues)PHP

Since Feb 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wbsply/route-annotation)[ Packagist](https://packagist.org/packages/websupply/route-annotation)[ RSS](/packages/websupply-route-annotation/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Annotations based routing for Neos Flow
=======================================

[](#annotations-based-routing-for-neos-flow)

Move your routing configuration into the controller with the a `Route` annotation

Install
-------

[](#install)

`composer require websupply/route-annotation`

Example
-------

[](#example)

Configuring a controller as follows

```
use WebSupply\RouteAnnotation\Annotations as WebSupply;

#[WebSupply\Route(path: 'class-annotation')]
class RouteAnnotatedController extends ActionController
{
    #[WebSupply\Route("annotated/with/path")]
    public function annotatedWithPathAction(): string
    {
        return 'Hello';
    }

    #[WebSupply\Route("annotated/with/argument/{name}")]
    public function annotatedUriWithArgumentAction(string $name):string
    {
        return 'Hello ' . $name;
    }
}
```

Gives you the following routes

```
$ ./flow routing:list
Currently registered routes:
+---+-------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------+
| # | Uri Pattern                                     | HTTP Method(s) | Name                                                                                                            |
+---+-------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------+
| 1 | class-annotation/annotated/with/path            | any            | Annotated Route (WebSupply\RouteAnnotation\Controller\RouteAnnotatedController->annotatedWithPathAction)        |
| 2 | class-annotation/annotated/with/argument/{name} | any            | Annotated Route (WebSupply\RouteAnnotation\Controller\RouteAnnotatedController->annotatedUriWithArgumentAction) |
+---+-------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------+

```

Annotation properties
---------------------

[](#annotation-properties)

The `Route` annotation can take following properties (known from the `Routes.yaml` configuration)

```
        string $path,
        null|string|array $method = null,
        string $format = 'html',
        ?bool $appendExceedingArguments = null
```

It respects the core routers handling of these configuration, as this is merely a different way of writing the configuration itself.

Support and sponsoring
----------------------

[](#support-and-sponsoring)

Work on this package is supported by the danish web company **WebSupply ApS**

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1243d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/531918?v=4)[Søren Malling](/maintainers/sorenmalling)[@sorenmalling](https://github.com/sorenmalling)

---

Top Contributors

[![sorenmalling](https://avatars.githubusercontent.com/u/531918?v=4)](https://github.com/sorenmalling "sorenmalling (6 commits)")

---

Tags

flowframeworkneosflow

### Embed Badge

![Health badge](/badges/websupply-route-annotation/health.svg)

```
[![Health](https://phpackages.com/badges/websupply-route-annotation/health.svg)](https://phpackages.com/packages/websupply-route-annotation)
```

###  Alternatives

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

1151.0M777](/packages/neos-neos)[neos/media

The Media package

101.2M53](/packages/neos-media)[wwwision/graphql

Base package to create GraphQL endpoints with Flow

2116.2k1](/packages/wwwision-graphql)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
