PHPackages                             aaugustyniak/params-codec-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. [Security](/categories/security)
4. /
5. aaugustyniak/params-codec-bundle

ActiveSymfony-bundle[Security](/categories/security)

aaugustyniak/params-codec-bundle
================================

Symfony bundle for obfuscating/encryption routing params.

1.1.0(9y ago)038MITPHPPHP &gt;=5.4.0

Since Mar 10Pushed 9y agoCompare

[ Source](https://github.com/artur-augustyniak/ParamsCodecBundle)[ Packagist](https://packagist.org/packages/aaugustyniak/params-codec-bundle)[ Docs](http://aaugustyniak.pl)[ RSS](/packages/aaugustyniak-params-codec-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

ParamsCodecBundle
=================

[](#paramscodecbundle)

=================== \[[![Build Status](https://camo.githubusercontent.com/20d9e7f5020f9d71ac0059055a7e265500eb805f9a3baf4f96dbe930b6b22125/68747470733a2f2f7472617669732d63692e6f72672f61727475722d617567757374796e69616b2f506172616d73436f64656342756e646c652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/20d9e7f5020f9d71ac0059055a7e265500eb805f9a3baf4f96dbe930b6b22125/68747470733a2f2f7472617669732d63692e6f72672f61727475722d617567757374796e69616b2f506172616d73436f64656342756e646c652e7376673f6272616e63683d6d6173746572)\] ()

Provides a simple Symfony 2/3 Bundle to AES encrypt routing parameters.

Installing via Composer
-----------------------

[](#installing-via-composer)

```
{
    "require": {
        "aaugustyniak/params-codec-bundle": "dev-master"
    }
}
```

Using and Setting Up
--------------------

[](#using-and-setting-up)

### composer

[](#composer)

```
composer aaugustyniak/params-codec-bundle

```

### AppKernel.php

[](#appkernelphp)

```
$bundles = [
    ...,
    new Aaugustyniak\ParamsCodecBundle\ParamsCodecBundle()
];
```

Basic usage
-----------

[](#basic-usage)

This bundle registers `param_codec` service and twig extension providing two functions in relation with standard Twig url creation functions.

In default implementation ParamCodec interface is backed by AesCodec. ParamCodec uses secret passphrase from parameters.yml.

### DefaultController.php

[](#defaultcontrollerphp)

```
use Aaugustyniak\ParamsCodecBundle\Annotations\DecryptParams;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     */
    public function indexAction(Request $request)
    {
        /**
         * Value to be encrypted in resulting url/path
         */
        $rawValue = "Some secret internal value";
        return $this->render('default/index.html.twig', [
            'raw_value' => $rawValue,
        ]);
    }

    /**
     * @DecryptParams()
     *
     * @Route("/display/{param}", name="display")
     * @param $param
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function displayAction($param)
    {
        /**
         * Using @DecryptParams() annotation $param is auto decrypted
         */
        return $this->render('default/index.html.twig', [
            'decrypted_value' => $param
        ]);

    }

}
```

### index.html.twig

[](#indexhtmltwig)

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

{% block body %}

                {% if decrypted_value is defined %}

                        Decrypted param: {{ decrypted_value }}

                            BACK

                {% else %}

                        {% verbatim %}
                            {{ raw_value }}
                        {% endverbatim %}
                        {{ raw_value }}

                            {% verbatim %}
                           {{ encrypted_path('display', {'param': raw_value}) }}
                        {% endverbatim %}

                            {% verbatim %}
                           {{ encrypted_url('display', {'param': raw_value}) }}
                        {% endverbatim %}

                {% endif %}

{% endblock %}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3344d ago

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

1.1.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4763087?v=4)[Artur Augustyniak](/maintainers/artur-augustyniak)[@artur-augustyniak](https://github.com/artur-augustyniak)

---

Top Contributors

[![artur-augustyniak](https://avatars.githubusercontent.com/u/4763087?v=4)](https://github.com/artur-augustyniak "artur-augustyniak (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aaugustyniak-params-codec-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/aaugustyniak-params-codec-bundle/health.svg)](https://phpackages.com/packages/aaugustyniak-params-codec-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k160.5M1.2k](/packages/symfony-web-profiler-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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