PHPackages                             valorin/l4-down-safe - 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. valorin/l4-down-safe

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

valorin/l4-down-safe
====================

Artisan command for switching a Laravel 4 queue worker into maintenance mode alongside the application safely.

v1.1.1(11y ago)51.0kMITPHPPHP &gt;=5.4.0

Since Jun 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/valorin/l4-down-safe)[ Packagist](https://packagist.org/packages/valorin/l4-down-safe)[ RSS](/packages/valorin-l4-down-safe/feed)WikiDiscussions master Synced 2d ago

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

Laravel 4 Down Safe
===================

[](#laravel-4-down-safe)

Artisan command for switching a Laravel 4 queue worker into maintenance mode alongside the application safely.

When running `./artisan down:safe`, it will add a job into the queue and wait. When this job is processed, the application is taken down into maintenance mode and the queue worker remains looping that job - however command will finish so you can proceed with maintenance. Finally, when the application is brought back up with `./artisan up`, the `./artisan queue:restart` command is called and the job finishes, so the worker can listen to the restart command and stop (so it can restart).

If running `./artisan queue:listen`, the listener will continue to operate throughout the process seamlessly. However, `./artisan queue:work --daemon` will stop and need to be restarted.

**Important:** It only supports a single queue worker. For something more complicated, you will need a more powerful solution to manage workers.

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

[](#installation)

Add the package to your application with composer:

```
composer require "valorin/l4-down-safe:~1.1"

```

Add the `L4DownSafeServiceProvider` service provider to the `providers` list in `./app/config/app.php`:

```
'providers' => array(
    ...
    'Valorin\L4DownSafe\L4DownSafeServiceProvider',
),

```

Usage
-----

[](#usage)

When ready to switch the application into maintenance mode, run:

```
./artisan down:safe

```

When the script finishes executing, the application is in maintenance mode. When ready to take it back up, run:

```
./artisan up

```

Version History
---------------

[](#version-history)

`v1.1.1` -- Switched to simply take down the application if `sync` queue specified.

`v1.1.0` -- Requires Laravel v4.2.5, and uses the `./artisan queue:restart` command to trigger a daemon worker restart.

`v1.0.0` -- Laravel v4.2.0+, using a manual `die();` on the worker when the application comes back up.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c2eb86dddee75463a43c6457f38413b61cc0009232881df800a3842e2d89f7b?d=identicon)[valorin](/maintainers/valorin)

---

Top Contributors

[![valorin](https://avatars.githubusercontent.com/u/897369?v=4)](https://github.com/valorin "valorin (8 commits)")

---

Tags

laravelqueuemaintenance

### Embed Badge

![Health badge](/badges/valorin-l4-down-safe/health.svg)

```
[![Health](https://phpackages.com/badges/valorin-l4-down-safe/health.svg)](https://phpackages.com/packages/valorin-l4-down-safe)
```

PHPackages © 2026

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