PHPackages                             streak/streak - 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. streak/streak

ActiveLibrary[Framework](/categories/framework)

streak/streak
=============

168.0k2[6 issues](https://github.com/streakphp/streak/issues)[9 PRs](https://github.com/streakphp/streak/pulls)PHPCI passing

Since Mar 22Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/streakphp/streak)[ Packagist](https://packagist.org/packages/streak/streak)[ RSS](/packages/streak-streak/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (15)Used By (0)

[![Streak](docs/images/logo.png)](docs/images/logo.png)

Streak PHP - Event Sourcing Framework
=====================================

[](#streak-php---event-sourcing-framework)

[![CI](https://github.com/streakphp/streak/actions/workflows/ci.yaml/badge.svg)](https://github.com/streakphp/streak/actions/workflows/ci.yaml)[![codecov](https://camo.githubusercontent.com/4f1335dcc84ac46fd51f34face35154dc2f2463bbd1ecd7aa74a6071c7a1dc1c/68747470733a2f2f636f6465636f762e696f2f67682f73747265616b7068702f73747265616b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/streakphp/streak)

Streak is a PHP framework designed for building applications using the Event Sourcing pattern. It provides a robust foundation for creating event-sourced, domain-driven applications with a focus on flexibility and testability.

Features
--------

[](#features)

- **Event Sourcing** - Persistent event store with support for various storage backends
- **Command Handling** - Type-safe command processing with built-in validation
- **Subscriptions** - Reliable event delivery system with support for resuming, restarting, and pausing
- **Projections** - Tools for building read models optimized for querying
- **Saga &amp; Process Management** - Support for long-running business processes across multiple aggregates

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

[](#installation)

Install via Composer:

```
composer require streak/streak
```

For Symfony integration, install the Streak Bundle:

```
composer require streak/streak-bundle
```

Documentation
-------------

[](#documentation)

Comprehensive documentation is available in the [docs](docs/index.md) directory:

- [Core Concepts](docs/index.md#core-concepts)
- [Getting Started](docs/index.md#getting-started)
- [Tutorials](docs/index.md#getting-started)
- [Symfony Integration](docs/symfony-bundle/installation.md)

Development
-----------

[](#development)

### Requirements

[](#requirements)

- PHP 8.0+
- Docker and Docker Compose

### Running locally

[](#running-locally)

Clone the repository:

```
git clone https://github.com/streakphp/streak.git
cd streak
```

Start the development environment:

```
docker-compose up --detach --build
```

### Running tests and checks

[](#running-tests-and-checks)

```
# Validate composer.json
docker compose run --rm --no-deps php composer validate --strict --no-interaction --ansi

# Install dependencies
docker compose run --rm --no-deps php composer install --no-scripts --no-interaction --ansi

# Run tests with coverage
docker compose run --rm --no-deps php xphp -dxdebug.mode=coverage bin/phpunit --color=always --configuration=phpunit.xml.dist

# Run tests without coverage
docker compose run --rm --no-deps php bin/phpunit

# Check code quality
docker compose run --rm --no-deps php bin/rector --dry-run --ansi
docker compose run --rm --no-deps php bin/deptrac --no-interaction --cache-file=./build/.deptrac/.deptrac.cache --ansi
docker compose run --rm --no-deps php bin/php-cs-fixer fix --diff --dry-run --ansi --config=.php-cs-fixer.dist.php
```

License
-------

[](#license)

Streak is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.5% 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/5b2f437df78d876bb4289c60fce0d0e8cb705308e2b51ad0ced1ab3f13e73d8e?d=identicon)[alanbem](/maintainers/alanbem)

---

Top Contributors

[![alanbem](https://avatars.githubusercontent.com/u/320410?v=4)](https://github.com/alanbem "alanbem (132 commits)")[![derave-agb](https://avatars.githubusercontent.com/u/176484416?v=4)](https://github.com/derave-agb "derave-agb (2 commits)")

---

Tags

cqrsdddevent-sourcingframeworkphp

### Embed Badge

![Health badge](/badges/streak-streak/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M529](/packages/laravel-passport)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[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.7M256](/packages/laravel-dusk)[laravel/prompts

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

708181.8M591](/packages/laravel-prompts)

PHPackages © 2026

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