PHPackages                             kundu/laravel-funcqueue - 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. kundu/laravel-funcqueue

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

kundu/laravel-funcqueue
=======================

A package for running functions as jobs in Laravel.

1.0.0(3y ago)379MITPHPPHP ^7.4 || \*

Since Apr 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kundu/laravel-funcqueue)[ Packagist](https://packagist.org/packages/kundu/laravel-funcqueue)[ Docs](https://github.com/kundu/laravel-funcqueue)[ RSS](/packages/kundu-laravel-funcqueue/feed)WikiDiscussions main Synced 1mo ago

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

**LaravelFuncQueue**
--------------------

[](#laravelfuncqueue)

**LaravelFuncQueue is a Laravel package that allows you to easily run functions as queued jobs. This package provides a simple and flexible functions for dispatching queued jobs that run the specified function in the specified class.**

**Installation**
----------------

[](#installation)

You can install the package using Composer:

```
composer require kundu/laravel-funcqueue

```

The package will automatically register its service provider.

**Usage**
---------

[](#usage)

To use the Laravel FuncQueue package, you first need to import the **LaravelFuncQueue** class:

```
use kundu\LaravelFuncQueue\LaravelFuncQueue;
```

### **Running a function as a job**

[](#running-a-function-as-a-job)

To run a function as a job, you can use the **LaravelFuncQueue::run()** method. This method takes the name of the class that contains the function, the name of the function, and an array of parameters to be passed to the function.

```
LaravelFuncQueue::run(MyClass::class, 'myMethod', ['param1', 'param2']);
```

You can also pass constructor parameters to the class by using the **withConstructor()** method:

```
LaravelFuncQueue::withConstructor(['param1'])->run(MyClass::class, 'myMethod', ['param2']);
```

### **Specifying the queue**

[](#specifying-the-queue)

You can specify the name of the queue on which the job should be run using the **onQueue()** method. This method takes a single parameter, which is the name of the queue.

```
LaravelFuncQueue::run(MyClass::class, 'myMethod', ['param1', 'param2'])->onQueue('default');
```

### **Handling exceptions**

[](#handling-exceptions)

To handle exceptions that occur while running a job, you can catch the exception and log it to the Laravel log using the **Log** facade:

**License**
-----------

[](#license)

KunduMagicFunctionJob is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

**Limitations and Recommendations for Using LaravelFuncQueue Package**

> If a function has a return value, it may not be ideal to use this package, as the function will be executed as a job and it may be difficult to obtain the return value from the job. It's generally recommended to use this package for functions that perform asynchronous or background tasks, rather than functions that return values or have side effects.
>
> If you need to obtain a return value from a function, you may want to consider using a different approach, such as calling the function directly or using a synchronous job.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9363a69b0f72919982e9afd0a1599fa808cfed3779d1472c4a2bb7c037918c64?d=identicon)[kundu](/maintainers/kundu)

---

Top Contributors

[![kundu](https://avatars.githubusercontent.com/u/17053340?v=4)](https://github.com/kundu "kundu (13 commits)")

---

Tags

laravellaravel-frameworklaravel-packagephpqueueasynclaravelqueuejobfunctionbackground

### Embed Badge

![Health badge](/badges/kundu-laravel-funcqueue/health.svg)

```
[![Health](https://phpackages.com/badges/kundu-laravel-funcqueue/health.svg)](https://phpackages.com/packages/kundu-laravel-funcqueue)
```

###  Alternatives

[imtigger/laravel-job-status

Laravel Job Status

5272.1M3](/packages/imtigger-laravel-job-status)[maqe/laravel-sqs-fifo

Laravel package that enables support for SQS FIFO Queue

15137.2k](/packages/maqe-laravel-sqs-fifo)[tochka-developers/queue-promises

Promises for Laravel queue jobs

1912.3k](/packages/tochka-developers-queue-promises)

PHPackages © 2026

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