PHPackages                             morebec/orkestra-event-sourcing-testing - 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. morebec/orkestra-event-sourcing-testing

ActiveLibrary[Testing &amp; Quality](/categories/testing)

morebec/orkestra-event-sourcing-testing
=======================================

Orkestra component with utilities for easily testing event sourced systems based on Orkestra and Symfony

v2.5.6(3y ago)091Apache-2.0PHPPHP &gt;=7.4

Since Jul 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Morebec/orkestra-event-sourcing-testing)[ Packagist](https://packagist.org/packages/morebec/orkestra-event-sourcing-testing)[ RSS](/packages/morebec-orkestra-event-sourcing-testing/feed)WikiDiscussions 2.x Synced today

READMEChangelogDependencies (9)Versions (8)Used By (0)

Event Sourcing Testing
======================

[](#event-sourcing-testing)

Utilities to easily test event sourced systems based on Orkestra and Symfony using a fluent API.

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

[](#installation)

```
composer require morebec/orkestra-orkestra-exceptions
```

Usage:
------

[](#usage)

```
class RegisterCustomerCommandHandlerTest extends EventSourcedTestCase
{
    /**
     * @return void
     * @throws Throwable
     */
    public function test(): void
    {
        $customerId = uniqid('cus_', true);
        $this
            ->defineScenario()
            ->givenCurrentDateIs(new DateTime("2020-01-01"))
            ->whenCommand(from(static function() use ($customerId) {
                $command = new RegistercustomerCommand();
                $command->customerId = $customerId;

                return $command;
            }))
            ->messageBusShouldRespondWithPayload(null)
            ->messageBusShouldRespondWithStatusCodeSucceeded()
            ->expectSingleEventSameAs(from(static function() use ($customerId) {
                $event = new CustomerRegisteredEvent();
                $event->customerId = $customerId;

                return $event;
            }))
            ->runScenario()
        ;
    }
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Recently: every ~58 days

Total

7

Last Release

1189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10d7f5561446f2d4df4413803946e9f77175155d241f78bd65c0dd94e6caffc5?d=identicon)[jwillp](/maintainers/jwillp)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/morebec-orkestra-event-sourcing-testing/health.svg)

```
[![Health](https://phpackages.com/badges/morebec-orkestra-event-sourcing-testing/health.svg)](https://phpackages.com/packages/morebec-orkestra-event-sourcing-testing)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[lchrusciel/api-test-case

Perfect PHPUnit TestCase for JSON/XML API TDD with Symfony.

4125.9M74](/packages/lchrusciel-api-test-case)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M563](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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