PHPackages                             padam87/module-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. padam87/module-bundle

AbandonedSymfony-bundle[Framework](/categories/framework)

padam87/module-bundle
=====================

Padam87 ModuleBundle

v1.1.2(12y ago)4278MITPHP

Since Dec 15Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Padam87/ModuleBundle)[ Packagist](https://packagist.org/packages/padam87/module-bundle)[ Docs](https://github.com/Padam87/ModuleBundle)[ RSS](/packages/padam87-module-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Module Bundle
=============

[](#module-bundle)

Modulariazion for Symfony2. Enable / disable modules.

1. Example
----------

[](#1-example)

```
/**
 * @Route("/")
 * @Template()
 * @Module("blog.main")
 */
public function indexAction(Request $request)
{

```

This annotation will throw an exception if the module is not enabled.

### In twig

[](#in-twig)

```
{% if module_active('blog.main') %}
	link to blog
{% endif %}

```

2. Installation
---------------

[](#2-installation)

### 2.1. Composer

[](#21-composer)

```
"padam87/module-bundle": "dev-master",

```

### 2.2. AppKernel:

[](#22-appkernel)

```
$bundles = array(
	...
    new Padam87\ModuleBundle\Padam87ModuleBundle(),
);

```

### 2.3. Routing:

[](#23-routing)

```
Padam87ModuleBundle:
    resource: "@Padam87ModuleBundle/Controller/"
    type:     annotation
    prefix:   /admin

```

The route will be /admin/modules this way... feel free to modify.

### 2.4. config.yml

[](#24-configyml)

```
imports:
	...
    - { resource: modules.yml }
    - { resource: "@Padam87ModuleBundle/Resources/config/config.yml" }

```

### modules.yml

[](#modulesyml)

Create your modules.yml. Example:

```
parameters:
  modules:
    blog:
      main: true
      comments: true
      history: true
      tags: true

```

Note: If you set one of the options to false, you wont be able to see that module in the admin, so it will be permanently disabled.

### 2.5. View

[](#25-view)

Athough the bundle provides a default view, you would propably want to create your own. You can do that by adding an:

```
app/Resources/Padam87ModuleBundle/views/Admin/index.html.twig

```

OR

You can create your own bundle as a child of this one.

[![Bitdeli Badge](https://camo.githubusercontent.com/edc749ba8f9bb0aab01312ea0335a6f3a221487656e1d8049c089d1016e3dd14/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f506164616d38372f6d6f64756c6562756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~54 days

Total

4

Last Release

4421d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776488?v=4)[Adam Prager](/maintainers/Padam87)[@Padam87](https://github.com/Padam87)

---

Top Contributors

[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (9 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

symfonymodularization

### Embed Badge

![Health badge](/badges/padam87-module-bundle/health.svg)

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

###  Alternatives

[league/tactician-bundle

Bundle to integrate Tactician with Symfony projects

24910.4M18](/packages/league-tactician-bundle)[kafkiansky/symfony-middleware

PSR-15 Middleware for symfony.

8068.9k](/packages/kafkiansky-symfony-middleware)[sunra/angularjs-symfony2-bundle

AngularJS and set of usefull thirdparty libs - composer packaged and in symfony2 bundle

133.9k](/packages/sunra-angularjs-symfony2-bundle)

PHPackages © 2026

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