PHPackages                             merophp/bundle-manager - 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. merophp/bundle-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

merophp/bundle-manager
======================

0.1-beta(4y ago)0379↓50%1MITPHPPHP &gt;=7.4

Since Dec 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Merophp/bundle-manager)[ Packagist](https://packagist.org/packages/merophp/bundle-manager)[ RSS](/packages/merophp-bundle-manager/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

Introduction
============

[](#introduction)

Bundle manager for the merophp framework.

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

[](#installation)

Via composer:

`composer require merophp/bundle-manager`Basic Usage
-----------

[](#basic-usage)

```
require_once 'vendor/autoload.php';

use Merophp\BundleManager\BundleManager;

use Merophp\BundleManager\Collection\BundleCollection;
use Merophp\BundleManager\Provider\BundleProvider;
use Merophp\BundleManager\Bundle;

$collection = new BundleCollection();
$collection->addMultiple([
    new Bundle('MyOrganization\\MyBundlename'),
    new Bundle('MyOrganization\\MyBundlename2', ['myconfigKey'=>'myConfigValue']),
]);

$provider = new BundleProvider($collection);
$bundleManager = new BundleManager($provider);

$bundleManager->startRegisteredBundles();

```

Bundle Bootstrapping
--------------------

[](#bundle-bootstrapping)

A bundle must have a bootstrapper class which implements *Merophp\\BundleManager\\BundleBootstrapper\\BundleBootstrapperInterface*. The bootstrapper class name is a compound of the bundle identifier as the namespace prefix and *Bootstrapping/Bootstrapper*. For the example above the fully qualified bootstrapper class name is *MyOrganization\\MyBundlename\\Bootstrapping\\Bootstrapper*:

```

namespace MyOrganization\MyBundlename\Bootstrapping;

use Merophp\BundleManager\BundleBootstrapperInterface;

class Bootstrapper implements BundleBootstrapperInterface
{
    public function setConfiguration(array $configuration = [])
    {}

    public function setup()
    {}

    public function tearDown()
    {}
}

```

A bundle bootstrapper has the two lifecycle methods 'setup' and 'tearDown', which are called by the bundle manager. 'setup' will be called, when the bundle gets started and 'tearDown' will be called at the very end of the PHP execution.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Total

2

Last Release

1565d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f873869f98cb1bdf9edb5847f987dfd216e5bc44f934d87875dca5ee20fbefb?d=identicon)[Robert.Becker](/maintainers/Robert.Becker)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/merophp-bundle-manager/health.svg)

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

PHPackages © 2026

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