PHPackages                             ralphjsmit/laravel-horizon-cron-supervisor - 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. ralphjsmit/laravel-horizon-cron-supervisor

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

ralphjsmit/laravel-horizon-cron-supervisor
==========================================

A modern solution for running Laravel Horizon with a CRON-based supervisor.

1.4.3(1y ago)629.2k↓28.9%4[2 issues](https://github.com/ralphjsmit/laravel-horizon-cron-supervisor/issues)MITPHPCI passing

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ralphjsmit/laravel-horizon-cron-supervisor)[ Packagist](https://packagist.org/packages/ralphjsmit/laravel-horizon-cron-supervisor)[ RSS](/packages/ralphjsmit-laravel-horizon-cron-supervisor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

[![laravel-horizon-cron-supervisor@2x](https://github.com/ralphjsmit/laravel-horizon-cron-supervisor/raw/main/docs/images/laravel-horizon-cron-supervisor.jpg)](https://github.com/ralphjsmit/laravel-horizon-cron-supervisor/blob/main/docs/images/laravel-horizon-cron-supervisor.jpg)

A modern solution for running Laravel Horizon with a cron-based supervisor
==========================================================================

[](#a-modern-solution-for-running-laravel-horizon-with-a-cron-based-supervisor)

**Run Laravel Horizon on cheap hosting environments without Supervisor🤑**

This Laravel package automatically checks every three minutes if your [Laravel Horizon](https://laravel.com/docs/8.x/horizon) instance is still running. In that way, it is the perfect replacement for the normally recommended [Supervisor Process Control System](http://supervisord.org), for which you need your own server.

This package allows running Laravel Horizon on shared hosting instances and servers where you don't have to option to install Supervisor.

Under the hood, the package automatically schedules a simple Artisan command to run every three minutes that checks whether Horizon is still running. If not, it'll restart the Horizon queues.

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

[](#installation)

Run the following command to install the package:

```
composer require ralphjsmit/laravel-horizon-cron-supervisor
```

The package works without any configuration. **Note that you need to have the Laravel Scheduler configured correctly.**

Publishing the config file
--------------------------

[](#publishing-the-config-file)

You can publish the config file or just use the environment variables.

```
php artisan vendor:publish --tag="horizon-cron-supervisor-config"
```

The config file contents.

```
