PHPackages                             envor/libstream - 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. envor/libstream

ActiveLibrary

envor/libstream
===============

This is my package libstream

v1.0.7(1y ago)084[4 PRs](https://github.com/envor/envor-libstream/pulls)MITPHPPHP ^8.2CI passing

Since Jul 31Pushed 1mo agoCompare

[ Source](https://github.com/envor/envor-libstream)[ Packagist](https://packagist.org/packages/envor/libstream)[ Docs](https://github.com/envor/libstream)[ GitHub Sponsors](https://github.com/envor)[ RSS](/packages/envor-libstream/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (15)Versions (15)Used By (0)

envor/libstream
===============

[](#envorlibstream)

[![Latest Version on Packagist](https://camo.githubusercontent.com/210523b86020af3cf9bc04a0bb5dc81ce4f6a0505d8b1548f0d5e91e00ca4554/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e766f722f6c696273747265616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/libstream)[![GitHub Tests Action Status](https://camo.githubusercontent.com/54b7b45c199949d36f4d8cfed27beb63b31396b5665494eaf15d70d83d7ca4bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f656e766f722d6c696273747265616d2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/envor/envor-libstream/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d91331bdc91de418f9da1b0b28bf49c517c8bd2ae6e97171adc8f0778ec8be04/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f656e766f722d6c696273747265616d2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/envor/envor-libstream/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c0c4c538cf663169d0fefc600530c7c44f98fb1896b2403699bbb7746d0cac34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e766f722f6c696273747265616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/libstream)

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

[](#installation)

You can install the package via composer:

```
composer require envor/libstream
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="libstream-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

```
use Envor\Libstream\Command as LibCommand;
use App\Aggregates\Main;

#[HandledBy(Main::class)]
class Command extends LibCommand
{
    public static function createBusiness(
        string $uuid,
        array $businessAttributes,
        array $metaData = []
        ): self
    {
        return new self(new BusinessCreated(
            aggregateUuid: $uuid,
            businessAttributes: $businessAttributes,
            metaData: $metaData
        ));
    }
}
```

```
use Envor\Libstream\Dispatcher as LibDispatcher

class Dispatcher extends LibDispatcher
{
    public function createBusiness(
        string $uuid,
        array $businessAttributes,
        array $metaData = []
        ): self
    {
        $this->add(new Command(new BusinessCreated(
            aggregateUuid: $uuid,
            businessAttributes: $businessAttributes,
            metaData: $metaData
        )));

        return $this;
    }
}
```

```
    $uuid = (string) str()->ulid();
    $dispatcher = Dispatcher::new()->createBusiness(
      uuid: $uuid,
      businessAttributes: $validatedData,
      metaData: [
        'auth' => [
          'email' => Auth::user()->email,
        ],
      ]
    )->dispatch();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [inmanturbo](https://github.com/envor)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance66

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

9

Last Release

654d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0261babef618b8fb3bfcea84376ed5e71e7169586eb8de63a6550c2e7ea653a6?d=identicon)[inmanturbo](/maintainers/inmanturbo)

---

Top Contributors

[![inmanturbo](https://avatars.githubusercontent.com/u/47095624?v=4)](https://github.com/inmanturbo "inmanturbo (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laravelenvorlibstream

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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