PHPackages                             polidog/controller-filter-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. [Framework](/categories/framework)
4. /
5. polidog/controller-filter-bundle

ActiveLibrary[Framework](/categories/framework)

polidog/controller-filter-bundle
================================

1.0.6(7y ago)31591MITPHPPHP ~7.0

Since Jun 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/polidog/ControllerFilterBundle)[ Packagist](https://packagist.org/packages/polidog/controller-filter-bundle)[ RSS](/packages/polidog-controller-filter-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (8)Versions (9)Used By (0)

PolidogControllerFilterBundle
=============================

[](#polidogcontrollerfilterbundle)

[![Build Status](https://camo.githubusercontent.com/a08dff81fa4312db6b885be9b420f1c112625b8ac793334fc248515cd25aa875/68747470733a2f2f7472617669732d63692e6f72672f706f6c69646f672f436f6e74726f6c6c657246696c74657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/polidog/ControllerFilterBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bc0cf4f9f5821bf9e20ded53c145a9bb4e021bac1cd2c2e40a9b68437b3280be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706f6c69646f672f436f6e74726f6c6c657246696c74657242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/polidog/ControllerFilterBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/e9debf7fceb11cd0d8b6058a870c10dc2b87a84d0eb3282238aa6f64e6b23b15/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706f6c69646f672f436f6e74726f6c6c657246696c74657242756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/polidog/ControllerFilterBundle/?branch=master)

This bundle to allow you to describe filtering with annotations in the Controller class.

Install
-------

[](#install)

install polidog/controller-filter-bundle with composer.

```
$ composer require polidog/controller-filter-bundle

```

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

[](#configuration)

```
// AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Polidog\ControllerFilterBundle\PolidogControllerFilterBundle(),
        // ...
    );
}
```

Using
-----

[](#using)

```
// controller class

/**
 * @Route("/card")
 * @Filter(Filter::TYPE_BEFORE, method="checkSession", service="app.service.check_service")
 */
class CardController extends Controller
{
    use DonationSessionTrait;

    /**
     * @Route("/")
     * @Method("GET")
     * @Template()
     * @Filter(Filter::TYPE_AFTER, method="changeResult", service="app.service.check_service")
     */
    public function indexAction(Request $request)
    {
        return ['hoge' =>'fuga'];
    }

}
```

```
// service class
class CheckService {
    /**
     * @Session
     */
    private $session;

    public function changeResult()
    {
        if ($this->session->has('hoge') {
            throw new \Exception();
        }
    }

    public function changeResult(GetResponseForControllerResultEvent $event)
    {
        $event->setControllerResult(['hoge' => 'hogehoge']);
    }
}
```

```
// services.yml

services:
    app.service.check_service:
        class: AppBundle\Service\CheckService
        public: true
        arguments: ["@session"]
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~53 days

Recently: every ~17 days

Total

8

Last Release

2890d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

1.0.2PHP ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b043af7ae4c4ea7a438c64e76033730db386091ba0275f6e7c4e09def71a68bb?d=identicon)[polidog](/maintainers/polidog)

---

Top Contributors

[![polidog](https://avatars.githubusercontent.com/u/284778?v=4)](https://github.com/polidog "polidog (36 commits)")[![issei-m](https://avatars.githubusercontent.com/u/1135118?v=4)](https://github.com/issei-m "issei-m (1 commits)")[![ryota-murakami](https://avatars.githubusercontent.com/u/5501268?v=4)](https://github.com/ryota-murakami "ryota-murakami (1 commits)")

---

Tags

symfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/polidog-controller-filter-bundle/health.svg)

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

###  Alternatives

[symfony/framework-bundle

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

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[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)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[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)
