{"repo":"eXolnet/laravel-heartbeat","free":true,"listed":false,"github":"https://github.com/eXolnet/laravel-heartbeat","clone":"git clone https://github.com/eXolnet/laravel-heartbeat.git","description":"Periodically schedule a job to send a heartbeat to a monitoring system.","language":"PHP","stars":69,"topics":["laravel","laravel-package","php","heartbeat","monitoring","hacktoberfest"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Heartbeat Periodically schedule a job to send a heartbeat to a monitoring system. Installation Require this package with composer: If you don't use package auto-discovery, add the service provider to the providers array in config/app.php : And the facade to the facades array in config/app.php : Configuration In order to edit this package's default configuration (where for example you can define presets and configure queue monitoring), you may execute: After that, the configuration file config/heartbeat.php will be created. This file contains all the options that can be configured for this package. The default configuration file can be found here. Usage Sending Signals Using The Heartbeat Facade You may send heartbeat signals via the Heartbeat facade. To do so, specify the channel you want to use and call the signal method with the arguments required by this channel. For example, with the Http channel, it may look like this: Alternatively, you may send the same signal using method helpers defined in the Heartbeat facade by calling the driver method directly: Using Artisan Heartbeat can also be used with the heartbeat Artisan command. To do so, specify the channel and specify the channel's arguments in the same order as their signal method. Here two examples of how to use it: Specifying Presets The handy preset channel allows you to define all your heartbeat configuration in the configuration file. First, let's look at an example of a preset configuration: This configur","default_branch":null,"files":null,"tree":[],"storefront":"/r/eXolnet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eXolnet/laravel-heartbeat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}