Download the PHP package rconfig/laravel-zabbix without Composer
On this page you can find all versions of the php package rconfig/laravel-zabbix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rconfig/laravel-zabbix
More information about rconfig/laravel-zabbix
Files in rconfig/laravel-zabbix
Package laravel-zabbix
Short Description Laravel-first Zabbix JSON-RPC API client with fluent, testable DX.
License MIT
Homepage https://github.com/rconfig/laravel-zabbix
Informations about the package laravel-zabbix
Laravel Zabbix by rConfig
A Laravel-first, developer-friendly client for the Zabbix JSON-RPC API that makes monitoring integrations a breeze, developed by rConfig.
β¨ Features
- π― Intuitive fluent API with chainable query methods ending in
.get() - π First-class developer experience with expressive, readable syntax
- β‘ No double method calls - just chain directly:
hosts()->limit(5)->get() - π§ͺ Local testing without a live Zabbix server via HTTP fakes
- π§ Optional real server integration for end-to-end testing
- π¦ Laravel package best practices with auto-discovery
- π Extensible design for additional Zabbix endpoints
π¦ Installation
Install via Composer:
The service provider will be auto-discovered. Optionally publish the config:
βοΈ Configuration
Environment Variables
Config File
The config file at config/zabbix.php provides sensible defaults:
π Quick Start
π Fluent Queries
Build complex queries with an intuitive fluent interface:
Hosts
Host Groups
Advanced Query Builder (Alternative)
For complex queries, you can still use the explicit query builder:
π Version Matrix & Compatibility
| Zabbix Version | Tested Minor | Notes |
|---|---|---|
| 6.0 LTS | 6.0.29 | Fully supported. apiinfo.version requires auth in some setups. |
| 7.x | 7.0.2 | Fully supported. Some methods differ slightly in param requirements. |
We recommend running your integration tests against both LTS and current major to catch method or parameter changes early.
π« Unsupported Operations
Some Zabbix API resources do not implement all CRUD operations.
For example, certain system resources cannot be created or deleted.
In these cases:
- Methods like
create(),update(), ordelete()will throw anUnsupportedOperationException - This makes it clear the operation isnβt available for that resource, rather than failing silently.
Example:
env ZABBIX_PARAM_VALIDATION=true env ZABBIX_BASE_URL=https://zabbix.example.com ZABBIX_API_TOKEN=your_api_token_here ZABBIX_USERNAME=Admin ZABBIX_PASSWORD=zabbix
/code ββ myapp/ # Your Laravel app ββ rconfig-laravel-zabbix/ # This package json { "repositories": [ { "type": "path", "url": "../rconfig-laravel-zabbix", "options": { "symlink": true } } ] } bash cd myapp composer require rconfig/laravel-zabbix:"dev-main" php artisan vendor:publish --tag=zabbix-config bash php artisan tinker
use Rconfig\Zabbix\Facades\ZabbixApi; $zabbix = ZabbixApi::login('fake://localhost'); $zabbix->apiVersion() // "7.0.0" (fake) $zabbix->hosts()->all() // Mock data md
[0.1.0] - 2025-08-09
Added
- Initial public release of the Laravel Zabbix client. bash git add CHANGELOG.md git commit -m "docs: update changelog for v0.1.0" git push origin main bash git tag -a v0.1.0 -m "v0.1.0 initial public release" git push origin v0.1.0 bash composer install bash vendor/bin/pest bash vendor/bin/pint bash
Run all tests with fakes
vendor/bin/pest
Run integration tests (requires real Zabbix server)
RUN_ZABBIX_INTEGRATION=1 \ ZABBIX_BASE_URL=https://your-zabbix.com \ ZABBIX_API_TOKEN=your_token \ vendor/bin/pest
## π License
This package is open-sourced software licensed under the [MIT license](LICENSE).
## Code of Conduct
While we aren't directly affiliated with Zabbix or Laravel, but we follow their respective Codes of Conduct. We expect you to abide by these guidelines as well.
## Authors
This library is created by rConfig Developers for the Zabbix and Laravel communities.
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
<div align="center">
<strong>Built with β€οΈ by rConfig for the Zabbix and Laravel communities</strong>
</div>All versions of laravel-zabbix with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.0|^8.0