PHPackages                             alexdeoliveira/zabbix-graph - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alexdeoliveira/zabbix-graph

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alexdeoliveira/zabbix-graph
===========================

Get nice looking graphs of your Zabbix devices.

1.0.5(5y ago)01341MITPHPPHP ^7.0

Since Apr 1Pushed 5y agoCompare

[ Source](https://github.com/alexdeoliveira/zabbix-graph)[ Packagist](https://packagist.org/packages/alexdeoliveira/zabbix-graph)[ Docs](https://github.com/alexdeoliveira/zabbix-graph)[ RSS](/packages/alexdeoliveira-zabbix-graph/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (1)

📈 PHP Zabbix Graph
==================

[](#-php-zabbix-graph)

Get a graph from Zabbix to display on a webpage or save to a file. If you are using Laravel, then please check out [this repository](https://github.com/alexdeoliveira/laravel-zabbix-graph).

Original Package
----------------

[](#original-package)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require alexdeoliveira/zabbix-graph
```

Require Composer's autoload (probably already done):

```
require __DIR__.'/../vendor/autoload.php';
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

You can create an instance of `Alexdeoliveira\ZabbixGraph` and pass the full URL to your Zabbix installation, the username and the password through the constructor. On this instance you can get a graph from Zabbix by calling `->find($graphId)`. Graph IDs can be found in the URL of the Zabbix UI of a certain graph.

Example:

```
$zabbixGraph = new Alexdeoliveira\ZabbixGraph('http://my-zabbix.com', 'username', 'passsword');

$zabbixGraph->width(500)
    ->height(300)
    ->find(54);
```

The output of find is a binary image that can be saved to a file or converted to an HTTP response.

### Available Methods

[](#available-methods)

The following methods are available to adjust the parameters of the graph:

MethodDescription`->width(int $width)`The width of the graph in pixels\*`->height(int $width)`The height of the graph in pixels\*`->startTime(DateTime $start)`The start date and time of the data displayed in the graph`->endTime(DateTime $end)`The end date and time of the data displayed in the graph*\* The graph that Zabbix returns is usually slightly bigger because of added legends or labels*

### Old Zabbix versions

[](#old-zabbix-versions)

If you're using Zabbix 1.8 or older, then you need to set the last parameter of the constructor to `true`.

Example:

```
$zabbixGraph = new Alexdeoliveira\ZabbixGraph('http://my-zabbix.com', 'username', 'passsword', true);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~259 days

Recently: every ~324 days

Total

6

Last Release

2031d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a288b5680dce75e9fb7f0249622ccd4cdea946b812fdf1addb010eb6cc127c29?d=identicon)[alexdeoliveira](/maintainers/alexdeoliveira)

---

Top Contributors

[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (12 commits)")[![alexdeoliveira](https://avatars.githubusercontent.com/u/34426?v=4)](https://github.com/alexdeoliveira "alexdeoliveira (4 commits)")

---

Tags

Zabbix Graph

### Embed Badge

![Health badge](/badges/alexdeoliveira-zabbix-graph/health.svg)

```
[![Health](https://phpackages.com/badges/alexdeoliveira-zabbix-graph/health.svg)](https://phpackages.com/packages/alexdeoliveira-zabbix-graph)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
