PHPackages                             gollumsf/controller-action-extractor-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gollumsf/controller-action-extractor-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gollumsf/controller-action-extractor-bundle
===========================================

Extract controller class and action method

v2.0.1(4mo ago)11.5k2GPL-3.0-or-laterPHPPHP &gt;=8.2CI failing

Since Feb 2Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/GollumSF/controller-action-extractor-bundle)[ Packagist](https://packagist.org/packages/gollumsf/controller-action-extractor-bundle)[ Docs](https://github.com/GollumSF/controller-action-extractor-bundle)[ RSS](/packages/gollumsf-controller-action-extractor-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (13)Versions (7)Used By (2)

ControllerActionExtractorBundle
===============================

[](#controlleractionextractorbundle)

[![Build Status](https://github.com/GollumSF/controller-action-extractor-bundle/actions/workflows/symfony_6.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/controller-action-extractor-bundle/actions)[![Build Status](https://github.com/GollumSF/controller-action-extractor-bundle/actions/workflows/symfony_7.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/controller-action-extractor-bundle/actions)[![Build Status](https://github.com/GollumSF/controller-action-extractor-bundle/actions/workflows/symfony_8.0.yml/badge.svg?branch=master)](https://github.com/GollumSF/controller-action-extractor-bundle/actions)

[![Coverage](https://camo.githubusercontent.com/8bac210e5601ac3535b61091bdd80d846e54ed7e96aae2bd45558e4c4952c180/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f476f6c6c756d53462f636f6e74726f6c6c65722d616374696f6e2d657874726163746f722d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/GollumSF/controller-action-extractor-bundle)[![License](https://camo.githubusercontent.com/b3805fe7d2af50a479812f0a25452fe15bfc7250c75f4602cfae7420142882d9/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f636f6e74726f6c6c65722d616374696f6e2d657874726163746f722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/gollumsf/controller-action-extractor-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/02f8370c48cb1cc95726ff0c84a0ddf8e8bb5f60c0211fbb6e44c6625ce97635/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f636f6e74726f6c6c65722d616374696f6e2d657874726163746f722d62756e646c652f762f737461626c65)](https://packagist.org/packages/gollumsf/controller-action-extractor-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/c41e0e37fcf52f5566ab484c1982e1a123b2fb2fe3908dae6bc3fa124aae424c/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f636f6e74726f6c6c65722d616374696f6e2d657874726163746f722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/gollumsf/controller-action-extractor-bundle)[![Discord](https://camo.githubusercontent.com/e2ea9d7fb91494f17c7c76925e006e2ad2d7586fa54f500364bddda1520eecb1/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3637313734313934343134393537333638373f636f6c6f723d707572706c65266c6162656c3d646973636f7264)](https://discord.gg/xMBc5SQ)

Extract controller class and action method from Request or Route

Installation:
-------------

[](#installation)

```
composer require gollumsf/controller-action-extractor-bundle
```

### config/bundles.php

[](#configbundlesphp)

```
return [
    // [ ... ]
    GollumSF\RestBundle\ControllerActionExtractorBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

```
use GollumSF\ControllerActionExtractorBundle\Extractor\ControllerActionExtractorInterface;

public function (ControllerActionExtractorInterface $extractor) { // Inject service

    // Get $route from router
    $controllerAction = $extractor->extractFromRoute($route);

    // Get $request
    $controllerAction = $extractor->extractFromRequest($request);

    // Get $request
    $controllerAction = $extractor->extractFromString('Controller::action');

    $controllerClass = $controllerAction->getControllerClass(); // Return controller class
    $actionMethod    = $controllerAction->getActionMethod();    // Return action method

}
```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance74

Regular maintenance activity

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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 ~561 days

Total

5

Last Release

144d ago

Major Versions

v1.0.2 → v2.0.02026-03-22

PHP version history (2 changes)v1.0.2PHP &gt;=7.2

v2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6690bb36165854e1db86762d56c22351ff844b12f59e5c91993a6d793f098cfb?d=identicon)[Smeagolworms4](/maintainers/Smeagolworms4)

---

Top Contributors

[![Smeagolworms4](https://avatars.githubusercontent.com/u/4448640?v=4)](https://github.com/Smeagolworms4 "Smeagolworms4 (10 commits)")

---

Tags

requestsymfonycontrollerrouteextractoraction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gollumsf-controller-action-extractor-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/gollumsf-controller-action-extractor-bundle/health.svg)](https://phpackages.com/packages/gollumsf-controller-action-extractor-bundle)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k257.3M12.4k](/packages/symfony-framework-bundle)[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k52.2M377](/packages/api-platform-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M427](/packages/easycorp-easyadmin-bundle)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[sulu/sulu

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

1.3k1.4M235](/packages/sulu-sulu)

PHPackages © 2026

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