PHPackages                             era269/micro-object - 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. era269/micro-object

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

era269/micro-object
===================

Object &lt;=&gt; Service =&gt; MicroService &lt;=&gt; Microobject

0.10.0(4y ago)3231[1 PRs](https://github.com/era269/micro-object/pulls)MITPHPPHP ^8.0

Since Dec 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/era269/micro-object)[ Packagist](https://packagist.org/packages/era269/micro-object)[ RSS](/packages/era269-micro-object/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (7)Versions (17)Used By (0)

micro-object
============

[](#micro-object)

[![PHP Stan Badge](https://camo.githubusercontent.com/5c3f647e9b98a35a0c07e86f075cf9f7ccc55ed24980200787ff83643cd0fc2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174253232253345)](https://camo.githubusercontent.com/5c3f647e9b98a35a0c07e86f075cf9f7ccc55ed24980200787ff83643cd0fc2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174253232253345)[![codecov](https://camo.githubusercontent.com/bc246588483547373512fd622954b5a72ad6fec919c92f5b7a3e17d01781dd04/68747470733a2f2f636f6465636f762e696f2f67682f6572613236392f6d6963726f2d6f626a6563742f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4836564b363044373036)](https://codecov.io/gh/era269/micro-object)

OOP
---

[](#oop)

The library just gives functionality of Message Prcessing and Event Dispatching. Only one case is described in the Example. See:

- NotebooksPort.php
- NotebookPortTest.php

### process

[](#process)

#### Performance

[](#performance)

was used modified `\Era269\Microobject\Example\Tests\NotebookPortTest::testGetText` method

##### Cached

[](#cached)

default `\Era269\Microobject\Traits\CanGetMethodNameByMessageTrait` functionality

```
    public function testGetText(EventStorageInterface $eventStorage): void
    {
        $notebooksPort = $this->getAutowiredNotebookPort($eventStorage);

        echo "\n start: " . var_dump($start = hrtime()) . "\n";
        for ($i = 0; $i getText([
                    'notebookId' => self::UNIQUE_ID_NOTEBOOK,
                    'pageId' => self::UNIQUE_ID_PAGE,
                ]);
        }
        echo "\n end: " . var_dump($end = hrtime()) . "\n";
        printf("\n ----------------time-------\n %d.%d ms \n", $end[0] - $start[0], abs($end[1] - $start[1]));

        $expectedText = [
            'first line',
            'second line',
            'third line',
        ];

        self::assertEquals($expectedText, $normalizedTextResponse['payload']['lines']);
    }
```

output:

```
array(2) {
  [0]=>
  int(131238)
  [1]=>
  int(855914676)
}

 start:
array(2) {
  [0]=>
  int(131238)
  [1]=>
  int(888507531)
}

 end:

 ----------------avereage-time-------
 0.32592855 ms

```

#### Without any cache:

[](#without-any-cache)

modified `\Era269\Microobject\Traits\CanGetMethodNameByMessageTrait` functionality

```
    private static function getMap(string $className): array
    {
//        if (!empty(static::$methodNamesMap[$className])) {
//            return static::$methodNamesMap[$className];
//        }
```

output:

```
array(2) {
  [0]=>
  int(131658)
  [1]=>
  int(190087943)
}

 start:
array(2) {
  [0]=>
  int(131658)
  [1]=>
  int(275028022)
}

 end:

 ----------------avereage-time-------
 0.84940079 ms

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

15

Last Release

1821d ago

PHP version history (2 changes)v0.1.0PHP ^7.4

v0.2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9285866ec898fd3f66cea79ab67d1caf86f6b84c08d43ee80b6d6b2fe2aa66b6?d=identicon)[era269](/maintainers/era269)

---

Top Contributors

[![era269](https://avatars.githubusercontent.com/u/16477742?v=4)](https://github.com/era269 "era269 (25 commits)")

---

Tags

event-dispatchingevent-drivenevent-sourcingmessagemicroserviceoopphpeventdddOOP

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/era269-micro-object/health.svg)

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

###  Alternatives

[league/event

Event package

1.6k141.6M184](/packages/league-event)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[zumba/symbiosis

Symbiosis, event structure for bootstrapping plugins.

1360.4k1](/packages/zumba-symbiosis)

PHPackages © 2026

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