PHPackages                             razorpay/lqext - 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. razorpay/lqext

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

razorpay/lqext
==============

Laravel queue enhancements, failure handling &amp; retries.

5.0.0(2y ago)166.0k1[4 PRs](https://github.com/razorpay/lqext/pulls)PHPPHP &gt;=8.1CI passing

Since Dec 10Pushed 9mo ago157 watchersCompare

[ Source](https://github.com/razorpay/lqext)[ Packagist](https://packagist.org/packages/razorpay/lqext)[ RSS](/packages/razorpay-lqext/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (24)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d3c877e28a6b642ac6f77cec1330ec7e21f7de26254fb48a771e5a6eda1cfdf8/68747470733a2f2f7472617669732d63692e6f72672f6a6974656e6472612d313231372f6c716578742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jitendra-1217/lqext)

lqext
=====

[](#lqext)

What
----

[](#what)

1. Makes Laravel's dispatchers which are buses, events &amp; mailable, transaction
    aware. I.e. dispatching events, jobs or mailable, be it queued or sync in
    complex flows, inside nested transaction etc will work as normal expectation.
2. Makes Laravel's queued dispatcher to log failures to redis storage and
    adds support for re attempting those failed remote pushes. Because of [a minor
    issue](https://github.com/laravel/framework/issues/27825) in framework's code the logging queue push failures part errors right.
    now. Please wait while a workaround is added.

How
---

[](#how)

Thanks to framework's design which allows extending any service of its easily
and within limits.

The library extends a very few methods of events, mailer, dispatcher, queue
factory &amp; queue services of framework. The extending is done via decoration
pattern instead of sub-classing.

Use
---

[](#use)

Install using composer

```
composer require jitendra/lqext
```

Copy configuration

```
cp vendor/jitendra/lqext/src/config.php config/lqext.php
```

### Transaction aware dispatching

[](#transaction-aware-dispatching)

Besides whitelisting dispatch-able names in above config file, we can use below
trait in any of job, mailable classes.

```
class Job
{
    use \Jitendra\Lqext\TransactionAware;

    // ...
}
```

### Logging queue push failures

[](#logging-queue-push-failures)

Uses default redis connection and maintains log of jobs which failed push to
remote service in a list. Also Laravel's queue manager will have a method now
to retery failed pushes.

```
// Retry last 1k failed to push jobs. You could add a controller or write a
// CLI command and invoke this method call from there.
$this->app->queue->retryFailedToPushJobs();
```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance40

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~276 days

Total

10

Last Release

816d ago

Major Versions

1.0.3 → 2.0.02021-01-18

2.0.0 → 3.0.02021-03-31

3.0.0 → 4.0.02022-09-05

4.0.2 → 5.0.02024-04-08

PHP version history (3 changes)1.0.0PHP ^7.0

3.0.0PHP &gt;=7.2

4.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7713209?v=4)[Razorpay](/maintainers/razorpay)[@razorpay](https://github.com/razorpay)

---

Top Contributors

[![jitendra-1217](https://avatars.githubusercontent.com/u/5562241?v=4)](https://github.com/jitendra-1217 "jitendra-1217 (19 commits)")[![dhroovRZP](https://avatars.githubusercontent.com/u/166590537?v=4)](https://github.com/dhroovRZP "dhroovRZP (7 commits)")[![jayesh-razorpay](https://avatars.githubusercontent.com/u/59387391?v=4)](https://github.com/jayesh-razorpay "jayesh-razorpay (6 commits)")[![ninetyone](https://avatars.githubusercontent.com/u/4340335?v=4)](https://github.com/ninetyone "ninetyone (4 commits)")[![hemanth132](https://avatars.githubusercontent.com/u/45421294?v=4)](https://github.com/hemanth132 "hemanth132 (4 commits)")[![ccrims0n](https://avatars.githubusercontent.com/u/4971419?v=4)](https://github.com/ccrims0n "ccrims0n (3 commits)")[![sskop99](https://avatars.githubusercontent.com/u/146944495?v=4)](https://github.com/sskop99 "sskop99 (3 commits)")[![rzp-security-svc](https://avatars.githubusercontent.com/u/173607612?v=4)](https://github.com/rzp-security-svc "rzp-security-svc (2 commits)")[![rajat-agarwal1](https://avatars.githubusercontent.com/u/104785816?v=4)](https://github.com/rajat-agarwal1 "rajat-agarwal1 (1 commits)")[![rajeevrai](https://avatars.githubusercontent.com/u/8924921?v=4)](https://github.com/rajeevrai "rajeevrai (1 commits)")[![MahlaqaHaque](https://avatars.githubusercontent.com/u/181709188?v=4)](https://github.com/MahlaqaHaque "MahlaqaHaque (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/razorpay-lqext/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k55.0M619](/packages/laravel-scout)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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