Download the PHP package davit-vardanyan/netdata-laravel without Composer
On this page you can find all versions of the php package davit-vardanyan/netdata-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davit-vardanyan/netdata-laravel
More information about davit-vardanyan/netdata-laravel
Files in davit-vardanyan/netdata-laravel
Package netdata-laravel
Short Description A production-ready Laravel wrapper for the Netdata API v3 PHP SDK
License MIT
Informations about the package netdata-laravel
Netdata Laravel
A production-ready Laravel wrapper for the Netdata API v3 PHP SDK. Provides facade, multi-connection support, caching, artisan commands, monitoring, health checks, and more.
Requirements
- PHP 8.2+
- Laravel 11.x, 12.x, or 13.x
- davit-vardanyan/netdata-php ^1.0
Installation
The package auto-discovers its service provider and facade.
Configuration
Publish the configuration file:
Set your environment variables in .env:
The base URL defaults to https://registry.my-netdata.io. Point it at any Netdata agent or Cloud instance — for example, a local agent at http://localhost:19999.
Multi-Connection Setup
Quick Start
Usage
All 13 Resource Accessors
Dependency Injection
Multiple Connections
Caching
Caching is enabled by default. Configure per-resource TTLs in config/netdata.php:
Resources like weights, search, badges, allMetrics, config, streamPath, and claim bypass the cache automatically.
Flush cache programmatically:
Artisan Commands
All commands support --connection=NAME and --json flags.
Monitoring
Alert Polling
Polls for new alerts and dispatches AlertTriggered events. Alerts are deduplicated by name and chart.
Node Status Monitoring
Detects nodes going online/offline and dispatches NodeWentOffline / NodeCameOnline events.
Threshold Rules
Monitor specific metrics against thresholds. Supports >, >=, <, <=, ==, != operators with optional duration-based breach tracking.
Events
Listen to monitoring events in your EventServiceProvider or anywhere Laravel events are registered:
Health Check
Middleware
Log request performance with the built-in middleware:
Testing
Use the FakesNetdata trait in your Pest or PHPUnit tests:
Running the Package Tests
Releasing
To create a new tag and GitHub release entirely from the command line:
The sed command above extracts the relevant CHANGELOG section automatically as release notes. Install the gh CLI with brew install gh and authenticate once with gh auth login.
License
MIT License. See LICENSE for details.
All versions of netdata-laravel with dependencies
davit-vardanyan/netdata-php Version ^1.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/log Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0