PHPackages                             smartgecko/governor-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. [Framework](/categories/framework)
4. /
5. smartgecko/governor-bundle

ActiveLibrary[Framework](/categories/framework)

smartgecko/governor-bundle
==========================

Symfony bundle for the Governor Framework

12771PHP

Since Dec 21Pushed 10y ago3 watchersCompare

[ Source](https://github.com/SmartGecko/GovernorBundle)[ Packagist](https://packagist.org/packages/smartgecko/governor-bundle)[ RSS](/packages/smartgecko-governor-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GovernorBundle
==============

[](#governorbundle)

[![Build Status](https://camo.githubusercontent.com/88b45c7b76f769acd044c1495bdfbfdadc7eddad1e2d431713922925d56a4c25/68747470733a2f2f7472617669732d63692e6f72672f536d6172744765636b6f2f476f7665726e6f7242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SmartGecko/GovernorBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/50c3ca467c68db5701cbf776ea87219306418da7faa34eb4c84516cb005c687e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f536d6172744765636b6f2f476f7665726e6f7242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SmartGecko/GovernorBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/6dd7fd23acc50ea5e766fb6c3534ee6652ee42e4236de4e0e8bd172890422be4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f536d6172744765636b6f2f476f7665726e6f7242756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SmartGecko/GovernorBundle/?branch=master)

Symfony 2 bundle for the Governor framework.

Configuration reference
-----------------------

[](#configuration-reference)

### Unit Of Work Factory

[](#unit-of-work-factory)

- `governor.uow_factory.default`
- `governor.uow_factory.debug`

The debug UOW uses the Symfony Stopwatch component to send data to the profiler timeline.

### Annotation Reader

[](#annotation-reader)

#### Type

[](#type)

- `simple`
- `file_cache`

#### Parameters

[](#parameters)

The `file_cache` annotation reader takes the following paramters

- `debug: boolean`
- `path: string`

### AMQP

[](#amqp)

To configure an AMQP terminal add an entry to the `governor_framework.terminals.amqp` section. The bundle will create a service in the Container named `governor.terminal.amqp.%name%`

### Command buses

[](#command-buses)

To configure a command bus add an entry to the `governor_framework.command_buses` section. A default command bus named `default` must be configured.

- `class: string`
- `registry: string`
- `dispatch_interceptors: array`
- `handler_interceptors: array`

### Event buses

[](#event-buses)

Sample configuration
--------------------

[](#sample-configuration)

```
governor_framework:
    uow_factory: governor.uow_factory.debug
    annotation_reader:
        type: file_cache
        parameters:
            debug: %kernel.debug%
            path: "%kernel.cache_dir%/governor"
    terminals:
        amqp:
            default:
                host: %amqp_host%
                port: %amqp_port%
                user: %amqp_user%
                password: %amqp_password%
                vhost: %amqp_vhost%
    command_buses:
        default:
            class: Governor\Framework\CommandHandling\SimpleCommandBus
            registry: governor.command_bus_registry.in_memory
            dispatch_interceptors: [governor.interceptor.validator]
            handler_interceptors: [domain.governor.interceptor.audit]
    event_buses:
        default:
            class: Governor\Framework\EventHandling\SimpleEventBus
            registry: governor.event_bus_registry.in_memory
            terminals: [governor.terminal.amqp.default]
    command_gateways:
        default:
            class: Governor\Framework\CommandHandling\Gateway\DefaultCommandGateway
            command_bus: default
    lock_manager: "null"
    command_target_resolver: annotation
    order_resolver: annotation
    aggregates:
        first:
            class: My\Project\FirstAggregate
            repository: hybrid
            handler: true
        another:
            class: My\Project\AnotherAggregate
            repository: hybrid
            handler: true
    event_store:
        type: orm
        parameters:
            entity_manager: governor_entity_manager
    serializer: jms
    saga_repository:
        type: orm
        parameters:
            entity_manager: governor_entity_manager
    saga_manager:
        type: annotation
        saga_locations: ["%kernel.root_dir%/../src/SmartGecko/Domain/*/Saga"]

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b648fff2b2766758ad0c7ee5de8ae24f4ec00ae5123bc8ed6c79538a6766df7f?d=identicon)[smartgecko](/maintainers/smartgecko)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/smartgecko-governor-bundle/health.svg)

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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