PHPackages                             mmbakker/my-test-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. [Testing &amp; Quality](/categories/testing)
4. /
5. mmbakker/my-test-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

mmbakker/my-test-bundle
=======================

Test bundle to practice making a Symfony bundle.

101PHP

Since Dec 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mmbakker/my-test-bundle)[ Packagist](https://packagist.org/packages/mmbakker/my-test-bundle)[ RSS](/packages/mmbakker-my-test-bundle/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony test bundle
===================

[](#symfony-test-bundle)

This repository contains an ultra slim bundle. It serves as a basis for practicing certain Symfony bundle development skills.

Before you begin
----------------

[](#before-you-begin)

It's a good idea to **fork this repository**. This allows you to save your progress in your own Github account and continue where you left off later on.

You might want to validate whether your bundle works in your Symfony project. You can use two approaches for this:

1. Packagist: if you have forked this repository, you can use [packagist.org](https://packagist.org) to register your bundle and install it using composer.
2. Symlink: you can also symlink the project and have the bundle installed manually. To symlink the bundle directory, run the following command from the root of your Symfony project folder (replace `` with the path to where your test bundle resides, for example `/Users/michielbakker/Projects/my-test-bundle`):

    ```
    # Unix
    mkdir -R vendor/mmbakker \
      && cd vendor/mmbakker \
      && ln -S
    ```

Tasks
-----

[](#tasks)

The following tasks test knowledge on how to create a bundle and how to tackle specific problems when developing a Symfony bundle.

1. Add service configuration for `MessageBuilder`: the `MessageBuilder` does not autowire out-of-the-box.

    1. Why?
    2. Can you solve it?
2. Some variables need to be different on each environment (think of database credentials for example). This is most commonly done by using environment variables.

    1. Now that `MessageBuilder` autowires, can you make it so that it accepts configuration from an environment variable when implemented in an app?
3. Every bundle should have unit tests, ensuring the functionality provided is proper and works. This is especially important for libraries or projects that are under constant development by multiple people.

    1. Where do you put a unit test in a bundle?
    2. What test would you write for this bundle?

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/45a4a424e52bd16305eaa2d2868e6fa4a8ea7fb48aa8901d573691627cc7648f?d=identicon)[mmbakker](/maintainers/mmbakker)

---

Top Contributors

[![mmbakker](https://avatars.githubusercontent.com/u/5112244?v=4)](https://github.com/mmbakker "mmbakker (4 commits)")

### Embed Badge

![Health badge](/badges/mmbakker-my-test-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mmbakker-my-test-bundle/health.svg)](https://phpackages.com/packages/mmbakker-my-test-bundle)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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