PHPackages                             sapiet/processor - 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. sapiet/processor

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

sapiet/processor
================

0.2.1(5y ago)0288PHP

Since Aug 26Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

Processor
=========

[](#processor)

This package allows you to handle state modifications.

For example, when you have a cron job that is executed every minute, and you want to alert someone if your script does not work, but once, not every minute !

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

[](#installation)

`composer require sapiet/processor`

Usage
-----

[](#usage)

This example simulates a script that start throwing exceptions every second.

This configuration allows you to do something every 4 seconds.

If the `Processor::ERROR_CALLBACK_DELAY_OPTION` option is ommited, the callback will be called once.

In this example, the last call is executed without throwing an exception, so the success callback is called

```
