PHPackages                             mennen-online/laravel-queue-watcher - 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. mennen-online/laravel-queue-watcher

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

mennen-online/laravel-queue-watcher
===================================

Automatically restart Queue when local PHP files change

1.1.1(7mo ago)46.6k↓30%2MITPHPPHP &gt;=8.1

Since Nov 24Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mennen-online/laravel-queue-watcher)[ Packagist](https://packagist.org/packages/mennen-online/laravel-queue-watcher)[ Docs](https://github.com/mennen-online/laravel-queue-watcher)[ RSS](/packages/mennen-online-laravel-queue-watcher/feed)WikiDiscussions master Synced 1mo ago

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

Automatically restart Queue when local PHP files change
=======================================================

[](#automatically-restart-queue-when-local-php-files-change)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3074948196918d1f0373a78c5e6c48d62f052d9d3d377991a351355a6d799a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656e6e656e2d6f6e6c696e652f6c61726176656c2d71756575652d776174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mennen-online/laravel-queue-watcher)[![GitHub Tests Action Status](https://camo.githubusercontent.com/854a2dd10a9705b7b314855a68c99b903cc4d4ae33388055d9df73ef9d9b0285/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d656e6e656e2d6f6e6c696e652f6c61726176656c2d71756575652d776174636865722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mennen-online/laravel-queue-watcher/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/94f4bbb20d2a9fca92c297a1a51316d9de0e9431a2e37a2fc2ccbae1d38b5902/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d656e6e656e2d6f6e6c696e652f6c61726176656c2d71756575652d776174636865722f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/mennen-online/laravel-queue-watcher/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9840a961a627e8b26329a573e4e019eb0c18ee92b44a0eac4925e65988ee097c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656e6e656e2d6f6e6c696e652f6c61726176656c2d71756575652d776174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mennen-online/laravel-queue-watcher)

Inspired by spatie/laravel-horizon-watcher, this package contains Artisan Command `queue:watch` that will start the default Queue worker and automatically restart it when any PHP file is created, updated or deleted.

Also you can provide the `--queue=` option to define another queue than default to be watched.

To disable Job and Queue Timeout, use the `--timeout=` option with value 0.

This command is meant to be used in local environment.

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

[](#installation)

You can install the package via composer:

```
composer require mennen-online/laravel-queue-watcher --dev
```

This is the contents of the published config file:

```
return [
    /*
     * Laravel Queue will be restarted when any PHP file inside these directories
     * get created, updated or deleted. You can also specify other kinds
     * of files here.
     */
    'paths' => [
        app_path(),
        config_path(),
        database_path(),
        resource_path('views'),
        base_path('.env'),
        base_path('composer.lock'),
    ],

    /*
     * This command will be executed to start Laravel Queue.
     */
    'command' => 'php artisan queue:work',
];
```

Usage
-----

[](#usage)

Run `php artisan queue:watch` to start default queue. When a PHP file in your project gets created, updated or deleted, Queue will automatically restart.

Run `php artisan queue:watch --queue=another_queue` to start another\_queue and restart it automatically.

Run `php artisan queue:watch --timeout=0` to disable queue worker timeout.

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze) for the inspiration for this Package

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance65

Regular maintenance activity

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~151 days

Recently: every ~236 days

Total

8

Last Release

215d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77828605?v=4)[Hendrik Mennen](/maintainers/hmennen90)[@hmennen90](https://github.com/hmennen90)

---

Top Contributors

[![hmennen90](https://avatars.githubusercontent.com/u/77828605?v=4)](https://github.com/hmennen90 "hmennen90 (9 commits)")[![keithbrink](https://avatars.githubusercontent.com/u/15267205?v=4)](https://github.com/keithbrink "keithbrink (1 commits)")[![pjotrvdh](https://avatars.githubusercontent.com/u/2292196?v=4)](https://github.com/pjotrvdh "pjotrvdh (1 commits)")[![zjbarg](https://avatars.githubusercontent.com/u/26728749?v=4)](https://github.com/zjbarg "zjbarg (1 commits)")

---

Tags

laravellaravel-horizon-watcher

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mennen-online-laravel-queue-watcher/health.svg)

```
[![Health](https://phpackages.com/badges/mennen-online-laravel-queue-watcher/health.svg)](https://phpackages.com/packages/mennen-online-laravel-queue-watcher)
```

###  Alternatives

[lorisleiva/laravel-actions

Laravel components that take care of one specific task

2.8k7.5M115](/packages/lorisleiva-laravel-actions)[spatie/laravel-horizon-watcher

Automatically restart Horizon when local PHP files change

2631.9M](/packages/spatie-laravel-horizon-watcher)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

254255.2k6](/packages/croustibat-filament-jobs-monitor)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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