PHPackages                             meisendev/laravel-daemon - 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. [Framework](/categories/framework)
4. /
5. meisendev/laravel-daemon

ActiveLibrary[Framework](/categories/framework)

meisendev/laravel-daemon
========================

Runs as sentinel for a list of daemon commands

v1.0.0(4y ago)26MITPHPPHP &gt;=5.5

Since Mar 15Pushed 4y ago2 watchersCompare

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

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

laravel-daemon
==============

[](#laravel-daemon)

**Runs as sentinel for a list of daemon commands**

In practice, a project can have a number of commands to be executed in a pre-determined schedule. Some commands need to be executed at a given interval, some need to run more than one instance in parallel, some need to automatically send alert when execution fails, and so on. This library provides a very useful feature called the Daemon Sentinel just to solve this problem.

This library based on oasis/slimapp and custom-made for laravel framework.

Quick Start
-----------

[](#quick-start)

In your laravel project:

```
composer require meisendev/laravel-daemon
```

Add sentinel command to `App\Console\Kernel` like this:

```
class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        TestDaemon1::class,
        \Meisendev\LaravelDaemon\DaemonSentinelCommand::class,
    ];
}
```

Add config file(e.g. `meisendev.php`) to config folder.

`meisendev.php` setup like this:

```
