PHPackages                             alexhenriet/common-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. alexhenriet/common-bundle

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

alexhenriet/common-bundle
=========================

Common stuffs used in Symfony projects

v0.1.2(3y ago)01.3kMITPHPPHP &gt;=7.2.5

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alexhenriet/common-bundle)[ Packagist](https://packagist.org/packages/alexhenriet/common-bundle)[ RSS](/packages/alexhenriet-common-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

CommonBundle
============

[](#commonbundle)

Common stuffs used in Symfony projects.

How to install the bundle ?
---------------------------

[](#how-to-install-the-bundle-)

1. Create bundle configuration in config/packages/alexhenriet\_common.yaml BEFORE requiring the package or you'll get an error during install (the bundle has no recipe)

    ```
    common:
        ldap_host: 'ldap-host.lan'
        # ldap_port: 389
        # ldap_opt_protocol_version: 3
        # ldap_opt_referrals: 0
        login_prefix: 'DOMAIN'
        # login_route: 'app_login'
        bypass_user_identifiers: ['MyLogin']
        bypass_environments: ['loc']

    ```
2. Install the package with composer

    ```
    composer require alexhenriet/common-bundle

    ```
3. Enable the package in config/bundles.php

    ```
    return [
        ...
        Alexhenriet\Bundle\CommonBundle\CommonBundle::class => ['all' => true],
    ];

    ```

How to use the bundle ?
-----------------------

[](#how-to-use-the-bundle-)

### Custom Authenticator

[](#custom-authenticator)

1. Generate user and auth using commands provided by symfony/maker-bundle
2. Replace the custom authenticator in the security.yaml

    ```
    security:
        enable_authenticator_manager: true

    firewalls:
        main:
            custom_authenticators:
                - Alexhenriet\Bundle\CommonBundle\Security\BypassableLdapLoginFormAuthenticator

    ```
3. Use \_username and \_password as input names in your template\\security\\login.html.twig

### Abstract Controller

[](#abstract-controller)

1. Extend the abstract controller in a controller

    ```
    use Alexhenriet\Bundle\CommonBundle\Controller\AbstractController;

    class ActionsController extends AbstractController
    {}

    ```
2. If you get error "Controller ... cannot be fetched from the container because it is private", add the following lines to your services.yaml

    ```
    # controllers are imported separately to make sure services can be injected
    # as action arguments even if you don't extend any base controller class
    App\Controller\:
      resource: '../src/Controller/'
      tags: ['controller.service_arguments']

    ```

Warranty Disclaimer and Limitation of Liability
-----------------------------------------------

[](#warranty-disclaimer-and-limitation-of-liability)

THIS FREE LIBRARY IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE AUTHOR DISCLAIMS ALL WARRANTIES, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND MERCHANTABILITY. UNDER NO CIRCUMSTANCES WILL THE AUTHOR BE LIABLE FOR ANY CONSEQUENTIAL, SPECIAL, INDIRECT, INCIDENTAL OR PUNITIVE DAMAGES WHATSOEVER ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON IMPLIED WARRANTIES OR THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, SO THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. THIS EULA WILL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF BELGIUM WITHOUT REGARD TO ITS CONFLICTS OF LAWS OR ITS PRINCIPLES. ANY CLAIM OR SUIT ARISING OUT OF OR RELATING TO THIS EULA WILL BE BROUGHT EXCLUSIVELY IN ANY COURT OF COMPETENT JURISDICTION LOCATED IN HAINAUT (BELGIUM).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Total

3

Last Release

1455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/686466b91a3110333c844ed3f841d851ee73e5a8c055633ab9ca9d7bcda5ad71?d=identicon)[Setsuna](/maintainers/Setsuna)

### Embed Badge

![Health badge](/badges/alexhenriet-common-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/alexhenriet-common-bundle/health.svg)](https://phpackages.com/packages/alexhenriet-common-bundle)
```

###  Alternatives

[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[pentiminax/ux-datatables

DataTables.net integration for Symfony

605.6k](/packages/pentiminax-ux-datatables)

PHPackages © 2026

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