PHPackages                             kima92/expector-patronum - 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. kima92/expector-patronum

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

kima92/expector-patronum
========================

This is my package expector-patronum

0.9.10(2y ago)2111MITPHPPHP ^8.1CI failing

Since Jan 12Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (12)Used By (0)

ExpectorPatronum
================

[](#expectorpatronum)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0dbeddfe434da29120c0cfb847afa80b15dc7e83b49332fef5dd2bcced7a29c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b696d6139322f6578706563746f722d706174726f6e756d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kima92/expector-patronum)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5b8c24aae8369c0222ac6d11be332b86fc271a8bfdb5d6b901663f33de37ec5f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b696d6139322f6578706563746f722d706174726f6e756d2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kima92/expector-patronum/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f2d0b1399a91acc234fe30b58d972438eac90ef274bc40564bcb25deaf5f18f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b696d6139322f6578706563746f722d706174726f6e756d2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kima92/expector-patronum/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/44194e88b92f77a848e522ebaee446fa355a076ec5abaf486356aca88d9c1f0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b696d6139322f6578706563746f722d706174726f6e756d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kima92/expector-patronum)

ExpectorPatronum is a Laravel-based system designed to manage and monitor task expectations and actual performances. It includes features like task scheduling, real-time monitoring, and integration with calendar interfaces for effective visualization and management.

Support us
----------

[](#support-us)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Laravel &gt;= 9.0
- MySQL or a compatible database system

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

[](#installation)

You can install the package via composer:

```
composer require kima92/expector-patronum
```

You can publish and run the migrations with:

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

You can publish the config file with:

```
php artisan vendor:publish --tag="expector-patronum-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="expector-patronum-views"
```

Usage
-----

[](#usage)

Configure a new Plan (1 time) via `/expector-patronum` path, or by code:

```
$group = Group::query()->create(['name' => 'bla', 'color' => 'green']);
$expector = new Expector();

$plan = $expector->generatePlan('transmit 231', '0 20 * * *', $group, [['type' => StartedInTimeCheck::RULE_NAME]]);
```

Create next expectation days (this process is already scheduled every day to 20:00)

```
$expector->generateNextExpectations(CarbonImmutable::create(2024), CarbonImmutable::create(2024, day: 2));
```

Run the task

```
ExpectorPatronum::runTask('my Task', fn() => sleep(5));
```

### General configurations via AppServiceProvider::register

[](#general-configurations-via-appserviceproviderregister)

Authorization With:

```
ExpectorPatronum::authWith(fn (Request $request) => !$this->app->environment('production') && $request->user())
```

Custom task identifier:

```
ExpectorPatronum::setExpectationUuidResolver(fn () => Str::uuid()->toString())
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Contributions to ExpectorPatronum are welcome. Please follow these steps to contribute:

1. Fork the repository.
2. Create a new branch for each feature or improvement.
3. Submit a pull request with a clear description of the changes.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [kima](https://github.com/kima92)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% 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 ~6 days

Total

10

Last Release

789d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1050f78226ce88b8960b40aac64b0a3d2dce339e2d0939863d581e9408258116?d=identicon)[kima92](/maintainers/kima92)

---

Top Contributors

[![o-kima](https://avatars.githubusercontent.com/u/65353752?v=4)](https://github.com/o-kima "o-kima (26 commits)")[![kima92](https://avatars.githubusercontent.com/u/40360720?v=4)](https://github.com/kima92 "kima92 (12 commits)")

---

Tags

laravelkimaexpector-patronum

### Embed Badge

![Health badge](/badges/kima92-expector-patronum/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[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)

PHPackages © 2026

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