Download the PHP package niladam/laravel-zabbix without Composer
On this page you can find all versions of the php package niladam/laravel-zabbix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niladam/laravel-zabbix
More information about niladam/laravel-zabbix
Files in niladam/laravel-zabbix
Package laravel-zabbix
Short Description A PHP & Laravel zabbix sender and provider
License MIT
Informations about the package laravel-zabbix
Laravel Zabbix Integration
This package provides a seamless way to send metrics, alerts, and notifications to a Zabbix server within PHP & Laravel applications. It includes powerful abstractions, support for named configurations, and simplified usage via make
methods.
The package borrows code and is inspired by the Zabbix sender package. Some credits go to zarplata.
Features
- PHP 7.4+ compatible.: Works with PHP 7.4 and above.
- Named Configurations: Easily switch between multiple host configurations.
- Streamlined Object Creation: Utilize
make
methods to simplify object initialization. - ZabbixAlert Class: Extendable class for effortless alerts.
- Notification Channel: Integrate Zabbix with Laravel's notification system.
- Queue Support: Fully compatible with Laravel queues.
- Usage outside of Laravel: Fully functional outside of Laravel.
Installation
You can install the package via composer:
If using Laravel you can publish the config file with:
This creates config/laravel-zabbix.php
with the following contents:
Configuration
Define hosts and default server settings in config/laravel-zabbix.php
:
Use named configurations like default
or critical
in your code.
Usage
Creating and sending messages (or metrics)
The make
method simplifies message creation by preloading the configuration and injecting the ZabbixManager
. Example:
Simplified Alerts with ZabbixAlert
The ZabbixAlert
class is designed for quick and easy alert creation. Extend this class to define alerts with minimal effort.
Laravel Notifications
Integrate Zabbix with Laravel notifications using the ZabbixChannel
.
Example Notification
Advanced Usage
Temporary Configurations
For one-off configurations, use usingServer
:
Usage outside of Laravel
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-zabbix with dependencies
ext-json Version *
ext-sockets Version *
webmozart/assert Version ^1.11