PHPackages                             handcraftedinthealps/rest-routing-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. handcraftedinthealps/rest-routing-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

handcraftedinthealps/rest-routing-bundle
========================================

This bundle provides automatic route registration for the Controllers

1.2.0(11mo ago)582.0M↑12.6%7[1 PRs](https://github.com/handcraftedinthealps/RestRoutingBundle/pulls)2MITPHPPHP ^7.2 || ^8.0CI passing

Since May 2Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/handcraftedinthealps/RestRoutingBundle)[ Packagist](https://packagist.org/packages/handcraftedinthealps/rest-routing-bundle)[ RSS](/packages/handcraftedinthealps-rest-routing-bundle/feed)WikiDiscussions 1.2 Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (14)Used By (2)

RestRoutingBundle ⛰
===================

[](#restroutingbundle-)

[![GitHub license](https://camo.githubusercontent.com/0d634942f7505ed442ee32306ad79b223c4b02fbc0e1c869cd46af399554d98b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68616e6463726166746564696e746865616c70732f52657374526f7574696e6742756e646c652e737667)](https://github.com/handcraftedinthealps/RestRoutingBundle/blob/master/LICENSE)[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/5862a6a5347cd6733ba2f502f286afb4815a070591a70b55b5a38bcc0e46ca9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f68616e6463726166746564696e746865616c70732f52657374526f7574696e6742756e646c652e737667)](https://github.com/handcraftedinthealps/RestRoutingBundle/releases)[![Github Test workflow status](https://camo.githubusercontent.com/fc953d5bd91513a862d83dff4f9e3291bc4136678603e39b92a0b9f0a0321678/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f68616e6463726166746564696e746865616c70732f52657374526f7574696e6742756e646c652f546573742532306170706c69636174696f6e2f6d61737465722e7376673f6c6162656c3d746573742d776f726b666c6f77)](https://github.com/handcraftedinthealps/RestRoutingBundle/actions)

This bundle provides the automatic route generation for the FOSRestBundle 3.0.

Documentation
-------------

[](#documentation)

[Read the Documentation](Resources/doc)

Installation
------------

[](#installation)

All the installation instructions are located in the [documentation](Resources/doc/1-setting_up_the_bundle.rst).

Opt-out of the `type: rest` routing
-----------------------------------

[](#opt-out-of-the-type-rest-routing)

You might want to migrate away from this bundle and use normal Symfony routes. Via the command inside this bundle you can convert all `type: rest` routes to normal Symfony routes:

```
bin/console fos:rest:routing:dump-symfony-routes

# filter by a specific controller
bin/console fos:rest:routing:dump-symfony-routes --controller="your.controller.service"

# filter by a specific name prefix
bin/console fos:rest:routing:dump-symfony-routes --name-prefix="your_prefix."
```

Copy the result into a `routing.yaml` file of your choice.

Switching from FOSRestBundle
----------------------------

[](#switching-from-fosrestbundle)

If you did before using the FOSRestBundle which removed the auto route generation the switch is easy. After you did successfully install the bundle change the configuration to the new bundle:

**before**

```
fos_rest:
    routing_loader:
        default_format: 'json'
        prefix_methods: true
        include_format: true
```

**after**

```
handcraftedinthealps_rest_routing:
    routing_loader:
        default_format: 'json'
        prefix_methods: true
        include_format: true
        # optional set supported formats else the configured one from fos_rest are used if installed:
        # formats:
        #     json: true
        #     xml: true
```

Update the classes (not necessary but recommended):

```
// Replace ClassResourceInterface
-use FOS\RestBundle\Routing\ClassResourceInterface;
+use HandcraftedInTheAlps\RestRoutingBundle\Routing\ClassResourceInterface;

// Replace RouteResource
-use FOS\RestBundle\Controller\Annotations\RouteResource;
+use HandcraftedInTheAlps\RestRoutingBundle\Controller\Annotations\RouteResource;

// Replace NamePrefix
-use FOS\RestBundle\Controller\Annotations\NamePrefix;
+use HandcraftedInTheAlps\RestRoutingBundle\Controller\Annotations\NamePrefix;

// Replace Prefix
-use FOS\RestBundle\Controller\Annotations\Prefix;
+use HandcraftedInTheAlps\RestRoutingBundle\Controller\Annotations\Prefix;

// Replace NoRoute
-use FOS\RestBundle\Controller\Annotations\NoRoute;
+use HandcraftedInTheAlps\RestRoutingBundle\Controller\Annotations\NoRoute;

// Replace Version
-use FOS\RestBundle\Controller\Annotations\Version;
+use HandcraftedInTheAlps\RestRoutingBundle\Controller\Annotations\Version;
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license [in the bundle](LICENSE).

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance51

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~143 days

Recently: every ~108 days

Total

14

Last Release

343d ago

PHP version history (2 changes)1.0.0-beta1PHP ^7.2

1.0.1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

---

Top Contributors

[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (30 commits)")[![kevinpapst](https://avatars.githubusercontent.com/u/533162?v=4)](https://github.com/kevinpapst "kevinpapst (4 commits)")[![Prokyonn](https://avatars.githubusercontent.com/u/25978473?v=4)](https://github.com/Prokyonn "Prokyonn (3 commits)")[![luca-rath](https://avatars.githubusercontent.com/u/5758674?v=4)](https://github.com/luca-rath "luca-rath (2 commits)")[![MaximumRGB](https://avatars.githubusercontent.com/u/11320963?v=4)](https://github.com/MaximumRGB "MaximumRGB (1 commits)")[![stollr](https://avatars.githubusercontent.com/u/1118790?v=4)](https://github.com/stollr "stollr (1 commits)")[![W0rma](https://avatars.githubusercontent.com/u/20659830?v=4)](https://github.com/W0rma "W0rma (1 commits)")[![casahugo](https://avatars.githubusercontent.com/u/8735848?v=4)](https://github.com/casahugo "casahugo (1 commits)")[![chirimoya](https://avatars.githubusercontent.com/u/627313?v=4)](https://github.com/chirimoya "chirimoya (1 commits)")[![mamazu](https://avatars.githubusercontent.com/u/14860264?v=4)](https://github.com/mamazu "mamazu (1 commits)")

---

Tags

restrouting

### Embed Badge

![Health badge](/badges/handcraftedinthealps-rest-routing-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/handcraftedinthealps-rest-routing-bundle/health.svg)](https://phpackages.com/packages/handcraftedinthealps-rest-routing-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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