PHPackages                             rap2hpoutre/nestor - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. rap2hpoutre/nestor

ActiveLibrary[Queues &amp; Workers](/categories/queues)

rap2hpoutre/nestor
==================

Do task, rollback if something goes wrong. Just like database transactions.

v0.0.3(10y ago)410.2kMITPHP

Since Oct 2Pushed 5y ago3 watchersCompare

[ Source](https://github.com/rap2hpoutre/nestor)[ Packagist](https://packagist.org/packages/rap2hpoutre/nestor)[ RSS](/packages/rap2hpoutre-nestor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Nestor Task Servant
===================

[](#nestor-task-servant)

[![Latest Version](https://camo.githubusercontent.com/a87288e30026eb8965fabeacdf674d0cd8284a599f839a5223e793abc34002c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7261703268706f757472652f6e6573746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/rap2hpoutre/nestor/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/adaa2b3df8a06662d974689248b3d5370b968adb486d88705c4866e1f97de216/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7261703268706f757472652f6e6573746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rap2hpoutre/nestor)[![Coverage Status](https://camo.githubusercontent.com/b3cdf40dea1bc59d956030b3cd217fb5fc9c00ac2370633edc3a0746ac8d8985/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7261703268706f757472652f6e6573746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rap2hpoutre/nestor/code-structure)[![Quality Score](https://camo.githubusercontent.com/17e6a93357ead339dee614578883edeaa39f397dbf6f6fd298c04c235ad6510d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7261703268706f757472652f6e6573746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rap2hpoutre/nestor)

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

[](#installation)

```
composer require rap2hpoutre/nestor

```

Usage
-----

[](#usage)

Run some tasks. In this example, the second task fails, everything will be rolled back.

```
$nestor = new Nestor\Servant;

// Create 1st task
$nestor->task()
    ->up(function (){
        echo "task 1 done\n";
    })
    ->down(function () {
        echo "task 1 cancelled\n";
    });

// Create 2nd task (will fail)
$nestor->task()
    ->up(function ($nestor) {
        $nestor->fail();
        echo "task 2 done\n";
    })
    ->down(function () {
        echo "task 2 cancelled\n";
    });

// Run all tasks, rollback on fail (LIFO stack)
$nestor->run();
```

You should see:

```
task 1 done
task 2 cancelled
task 1 cancelled

```

Why?
----

[](#why)

Todo: Explain why.

About
-----

[](#about)

[![Software License](https://camo.githubusercontent.com/206858cd1aff1a6d310f409f81be2d0735ff91dd0ab2e873513c21f3f83b815f/687474703a2f2f6d6f7365726d2e667265652e66722f6d6f756c696e736172742f696d616765732f6e6573746f722e676966)](LICENSE)

Thanks to [DonoSybrix](https://github.com/DonoSybrix). Feel free to contribute.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97% 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

3

Last Release

3872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/849c3b70e82874c89e079738e4879e0eabb71d1a73f53e81b88c39a9b40f32ae?d=identicon)[rap2hpoutre](/maintainers/rap2hpoutre)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (32 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

nestorphptask-runnerlaravelpackagetasktransactionrollbackUp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[mookofe/tail

RabbitMQ and PHP client for Laravel and Lumen that allows you to add and listen queues messages just simple

5552.5k](/packages/mookofe-tail)

PHPackages © 2026

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