PHPackages                             romaindesajardim/broadway-generator-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. romaindesajardim/broadway-generator-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

romaindesajardim/broadway-generator-bundle
==========================================

This bundle generates code for you

v0.3.0(8y ago)616[1 issues](https://github.com/RomainDeSaJardim/BroadwayGeneratorBundle/issues)MITPHP

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/RomainDeSaJardim/BroadwayGeneratorBundle)[ Packagist](https://packagist.org/packages/romaindesajardim/broadway-generator-bundle)[ RSS](/packages/romaindesajardim-broadway-generator-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (4)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/65dac1f2ac61a73b816d9e06c5734da7c2a6cc8f460a16b5b28c07ebfba12092/68747470733a2f2f7472617669732d63692e6f72672f526f6d61696e446553614a617264696d2f42726f616477617947656e657261746f7242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/RomainDeSaJardim/BroadwayGeneratorBundle)[![codecov](https://camo.githubusercontent.com/77e8c46a8c72ad84d14fe01647bb09f692986a7b06e7bc4e16f9c28ba9a15690/68747470733a2f2f636f6465636f762e696f2f67682f526f6d61696e446553614a617264696d2f42726f616477617947656e657261746f7242756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/RomainDeSaJardim/BroadwayGeneratorBundle)

BroadwayGeneratorBundle
=======================

[](#broadwaygeneratorbundle)

This bundle gives some symfony commands to generate Commands, Events, ReadModels, and more, for Broadway.

This bundle is highly inspired by [SensioGeneratorBundle](https://github.com/sensiolabs/SensioGeneratorBundle)

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

[](#installation)

Install it with composer

`composer require romaindesajardim/broadway-generator-bundle`

and add it to your `AppKernel.php`

`new RomainDeSaJardim\Bundle\BroadwayGeneratorBundle\BroadwayGeneratorBundle(),`

Features
--------

[](#features)

Actually there is only one command available. More will come soon ...

### Broadway Commands

[](#broadway-commands)

This command generate a Broadway command and implements the handle method in the Broadway Command Handler automatically. You have just to add your parameters and code the handler.

`php bin/console rdsj:broadway:generate-command`

⚠️ If you use Symfony 2, use `app/console` instead of `bin/console`

This command need 3 inputs :

- `bundle` *(The bundle name where the Broadway Command will be generate)*
- `name` *(The name of the Broadway Command you want)*
- `command-handler` Optionnal *(The Command Handler's service id where the Broadway Command will be handle)*

By default the command is run in the interactive mode and asks questions to determine values of thoose inputs

But if you want, you can run the command in a non-interactive mode and providing the needed inputs

`php bin/console rdsj:broadway:generate-command --no-interaction FooBarBundle FooBar [foo.bar-handler]`

#### Exemple

[](#exemple)

Imagine I have my Broadway Command Handler `FooBarBundle\FooBarCommandHandler` linked by a Symfony service :

```

```

And I want to create a Broadway Command `FooBar` in the same bundle as my Command Handler `FooBarBundle`

So in a non interactive mode I have to launch this command :

`php bin/console rdsj:broadway:generate-command --no-interaction FooBarBundle FooBar foo.bar.command_handler`

The result will be :

A new file `Command\FooBarCommand.php`

```

```

in

```

        toto.readmodel
        AppBundle\ReadModel\TotoReadModel

```

in order to configure the new ReadModel service

TODO
----

[](#todo)

- Add a command to apply or handle an event in a projector, processor or saga
- Add a command to generate Broadway Event
- Add a command to generate Broadway ReadModel
- Add a command to generate Broadway Command Handler
- Generate Command handler automatically if it doesn't exist on Broadway Command creation
- Add fields to Broadway Command to add fields and implements getters

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

You feel free to report a new issue or a feature requests if it doesn't already exist or is in the Todo list (for feature request)

Contribute
----------

[](#contribute)

You feel free to open pull request

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

6

Last Release

3207d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09ce90d92b0af19bb6fa98861a8a074c03cb0892712dbf1177fd9f0975a3028c?d=identicon)[RomainDeSaJardim](/maintainers/RomainDeSaJardim)

---

Top Contributors

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

---

Tags

symfonybundlebroadwayBroadwayBundle

### Embed Badge

![Health badge](/badges/romaindesajardim-broadway-generator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/romaindesajardim-broadway-generator-bundle/health.svg)](https://phpackages.com/packages/romaindesajardim-broadway-generator-bundle)
```

###  Alternatives

[api-platform/core

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

2.6k52.2M371](/packages/api-platform-core)[api-platform/symfony

Symfony API Platform integration

385.0M152](/packages/api-platform-symfony)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66587.0k13](/packages/web-auth-webauthn-symfony-bundle)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k25](/packages/solspace-craft-freeform)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6954.9k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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