PHPackages                             b2pweb/bdf-instantiator - 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. b2pweb/bdf-instantiator

ActiveLibrary

b2pweb/bdf-instantiator
=======================

Bdf Instantiator component

v1.2.0(5mo ago)011.4k↓30.8%1MITPHPPHP ~7.2 | ~8.0.0 | ~8.1.0 | ~8.2.0 | ~8.3.0 | ~8.4.0 | ~8.5.0CI failing

Since Dec 24Pushed 5mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (12)Used By (1)

B2PWeb Instantiator
===================

[](#b2pweb-instantiator)

A basic object instantiator.

[![build](https://github.com/b2pweb/bdf-instantiator/actions/workflows/php.yml/badge.svg)](https://github.com/b2pweb/bdf-instantiator/actions/workflows/php.yml)[![codecov](https://camo.githubusercontent.com/0d3f35b54e03bd9d80e0f8075d1e077a3807e7de2ac4f2db5420c1583ba7fdde/68747470733a2f2f636f6465636f762e696f2f6769746875622f6232707765622f6264662d696e7374616e746961746f722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d564f4653504557594b58)](https://app.codecov.io/github/b2pweb/bdf-instantiator)[![Packagist Version](https://camo.githubusercontent.com/f5cedc9c13da79c484db409bc1402c56351850b8fc5ef8af8f77e3b1c7a205eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6232707765622f6264662d696e7374616e746961746f722e737667)](https://packagist.org/packages/b2pweb/bdf-instantiator)[![Total Downloads](https://camo.githubusercontent.com/aa2c626bc9eff85ee4ed481f7b12e8b32195210eae40d11156e5633fd87e6cae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6232707765622f6264662d696e7374616e746961746f722e737667)](https://packagist.org/packages/b2pweb/bdf-instantiator)

Install via composer
--------------------

[](#install-via-composer)

```
$ composer require b2pweb/bdf-instantiator
```

Usage Instruction
-----------------

[](#usage-instruction)

Basic usage when resolving from container definition.

```
use Bdf\Instantiator\Instantiator;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;

/** @var ContainerInterface $container */
$container->add(Logger::class, LoggerInterface::class);

$instantiator = new Instantiator($container);
$instantiator->make(LoggerInterface::class);
```

The instantiator resolve the dependencies of a method based on container definitions.

```
use Bdf\Instantiator\Instantiator;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;

class Foo
{
    public $logger;

    /**
     * Foo constructor.
     *
     * @param LoggerInterface $logger
     */
    public function __construct(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
}

/** @var ContainerInterface $container */
$container->add(Logger::class, LoggerInterface::class);

$instantiator = new Instantiator($container);
$foo = $instantiator->make(Foo::class);

var_dump($foo->logger); // Logger
```

License
-------

[](#license)

Distributed under the terms of the MIT license.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance72

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72% 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 ~217 days

Recently: every ~163 days

Total

11

Last Release

158d ago

PHP version history (8 changes)v1.0.0PHP &gt;=7.1

v1.0.1PHP ~7.1 | ~8.0.0

v1.0.3PHP ~7.1 | ~8.0.0 | ~8.1.0

v1.0.5PHP ~7.1 | ~8.0.0 | ~8.1.0 | ~8.2.0

v1.0.6PHP ~7.1 | ~8.0.0 | ~8.1.0 | ~8.2.0 | ~8.3.0

v1.1.0PHP ~7.2 | ~8.0.0 | ~8.1.0 | ~8.2.0 | ~8.3.0

v1.1.1PHP ~7.2 | ~8.0.0 | ~8.1.0 | ~8.2.0 | ~8.3.0 | ~8.4.0

v1.1.2PHP ~7.2 | ~8.0.0 | ~8.1.0 | ~8.2.0 | ~8.3.0 | ~8.4.0 | ~8.5.0

### Community

Maintainers

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

---

Top Contributors

[![vincent4vx](https://avatars.githubusercontent.com/u/1770818?v=4)](https://github.com/vincent4vx "vincent4vx (18 commits)")[![Johnmeurt](https://avatars.githubusercontent.com/u/12075308?v=4)](https://github.com/Johnmeurt "Johnmeurt (7 commits)")

---

Tags

instantiatepatterndesign pattern

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/b2pweb-bdf-instantiator/health.svg)

```
[![Health](https://phpackages.com/badges/b2pweb-bdf-instantiator/health.svg)](https://phpackages.com/packages/b2pweb-bdf-instantiator)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[league/pipeline

A plug and play pipeline implementation.

1.0k16.0M74](/packages/league-pipeline)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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