PHPackages                             tmilos/symfony-control - 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. tmilos/symfony-control

ActiveBundle[Framework](/categories/framework)

tmilos/symfony-control
======================

1.0.1(10y ago)013MITPHP

Since Feb 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tmilos/symfony-control)[ Packagist](https://packagist.org/packages/tmilos/symfony-control)[ RSS](/packages/tmilos-symfony-control/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

symfony-control
===============

[](#symfony-control)

[![License](https://camo.githubusercontent.com/f1004abfa4d9665245e67b25d9013f062495e211431f83d2f420457509cbd885/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746d696c6f732f73796d666f6e792d636f6e74726f6c2e737667)](https://packagist.org/packages/tmilos/symfony-control)[![Build Status](https://camo.githubusercontent.com/eb4941db5c2f90ceb8823d071dc4e7ba145e0dcf21b29daac82d92720e6c1517/68747470733a2f2f7472617669732d63692e6f72672f746d696c6f732f73796d666f6e792d636f6e74726f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tmilos/symfony-control)[![Coverage Status](https://camo.githubusercontent.com/f71d481a2bd6bdd8fde2dc6b36d7c9c937df17bf5adf6598316b774732ab5de8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f746d696c6f732f73796d666f6e792d636f6e74726f6c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/tmilos/symfony-control?branch=master)

Symfony bundle implementing the Twig control tag. Easy rendering of blocks with ability to pass specified parameters trough new `control` twig tag.

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

[](#installation)

Require `tmilos/symfony-control` with composer

```
require tmilos/symfony-control
```

Add the bundle to your AppKernel

```
class AppKernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Tmilos\ControlBundle\TmilosControlBundle(),
            // ...
        );
    }
}
```

Control twig tag
----------------

[](#control-twig-tag)

```
{% control BLOCK_NAME with EXPRESSION %}
```

It will display specified BLOCK\_NAME with specified EXPRESSION put as the value of the `control` variable available only in that block scope.

property twig function
----------------------

[](#property-twig-function)

```
{{ property(object, 'path.to.property') }}
```

Returns value of the object's property

Wrapper around `Symfony\Component\PropertyAccess\PropertyAccessor::getValue()`

has\_property twig function
---------------------------

[](#has_property-twig-function)

```
{{ has_property(object, 'path.to.property') }}
```

Returns bool

Wrapper around `Symfony\Component\PropertyAccess\PropertyAccessor::isReadable()`

Usage Example
-------------

[](#usage-example)

```
{# table.html.twig #}

{% block table %}

        {% for col in control.columns %}
            {{ col|trans }}
        {% endfor

        {% for row in control.rows %}

            {% for col in control.columns %}

                {{ has_property(row, col) ? property(row, col) : block(col) }}

            {% endfor %}

        {% endfor

{% endblock %}
```

```
{# index.html.twig #}

{% extends 'base.html.twig' %}

{% use 'table.html.twig' %}

{% block body %}
    {% control table with {
        columns: ['name', 'user.email', 'special_column'],
        rows: entities
    } %}
{% endblock %}

{% block special_column %}
    edit
{% endblock %}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e5954d541c3e6ce57f3674bd4ce58bf22629f70b8e8a8779aec754787d26e7e?d=identicon)[tmilos](/maintainers/tmilos)

---

Top Contributors

[![tmilos](https://avatars.githubusercontent.com/u/1818373?v=4)](https://github.com/tmilos "tmilos (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tmilos-symfony-control/health.svg)

```
[![Health](https://phpackages.com/badges/tmilos-symfony-control/health.svg)](https://phpackages.com/packages/tmilos-symfony-control)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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