PHPackages                             danielm/symfony-demo-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. danielm/symfony-demo-bundle

ActiveSymfony-bundle

danielm/symfony-demo-bundle
===========================

An Skeleton/Demo bundle

0.1.3(2y ago)125MITPHPPHP &gt;=8.1

Since Nov 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/danielm/symfony-demo-bundle)[ Packagist](https://packagist.org/packages/danielm/symfony-demo-bundle)[ Docs](https://github.com/danielm/symfony-demo-bundle)[ RSS](/packages/danielm-symfony-demo-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (14)Used By (0)

🚀 Symfony Bundle Demo
=====================

[](#-symfony-bundle-demo)

[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/Tests/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/tests.yml)[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/PHPCsFixer/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/php-cs-fixer.yml)[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/PHPStan/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/php-stan.yml)

See my blog post about this:

[https://danielmg.org/php/2023/02/extending-symfony-bundle-flex-recipes-and-private-repositories.html](https://danielmg.org/php/2023/02/extending-symfony-bundle-flex-recipes-and-private-repositories.html%5D)

About
-----

[](#about)

This project is part of my Post series about how to build a Symfony Flex Recipes repository (private or not).

This bundle is a demo that shows a couple of things yo can do on a Symfony bundle, such as:

### Includes

[](#includes)

- Console Command: `bin/console demo:command`
- DemoServiceInterface &amp; DemoService: Example of some kind of Contract/Adapter-like patter of a service
- Events: Custom event `UnnecessaryEvent` and simple EventSubscriber `DemoSubscriber`
- DemoTwigExtension: Adds a twig function `demoFcn()`
- Controller:
    - Route `/{a}/{b}` -&gt; Simple endpoint that returns a Json response with some values and adds `a + b`
    - Route `/view` -&gt; Simple endpoint that renders a Twig template and returns HTML
    - Route `/dispatch/{md5_hash}` -&gt; Simple endpoint to test dispatching our `UnnecessaryEvent`
- Configuration
    - Using Bundle config parameters
    - Using Custom Env variables `DEMO_SAMPLE_ENV`
- Usage of Translations and public assets.

Install
-------

[](#install)

### Using Symfony Recipe

[](#using-symfony-recipe)

```
composer require danielm/symfony-demo-bundle
```

### Manually

[](#manually)

Same `composer` command as using the Recipe, you will also need to create/edit some files manually (that's what a Symfony recipe does for you)

...

Composer scripts
----------------

[](#composer-scripts)

Coding Standards (*follows symfony's default rules*)

```
# Displays errors
composer run cs:check
# Makes changes
composer run cs:fix
```

Testing

```
composer run test
```

PHP code analysis

```
composer run stan
```

Todo
----

[](#todo)

- Validators examples
- Serialization examples
- Test Event &amp; dispatcher

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~31 days

Recently: every ~92 days

Total

13

Last Release

911d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92757127e414a38d6a887305554df3cb057284c867fef95b0ac43f7ca2c4c112?d=identicon)[danielm](/maintainers/danielm)

---

Top Contributors

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

---

Tags

boilerplatebundlecomposerdemoflexphprecipesymfonytemplatesymfonybundleSkeletondemoprivaterecipes

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/danielm-symfony-demo-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/danielm-symfony-demo-bundle/health.svg)](https://phpackages.com/packages/danielm-symfony-demo-bundle)
```

###  Alternatives

[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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