PHPackages                             ikke/phpzabbix - 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. [API Development](/categories/api)
4. /
5. ikke/phpzabbix

ActiveLibrary[API Development](/categories/api)

ikke/phpzabbix
==============

PHP Zabbix API Client

v0.4(1y ago)512.9k1[2 issues](https://github.com/Ikke/phpzabbix/issues)GPL-3.0PHP

Since Feb 4Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Ikke/phpzabbix)[ Packagist](https://packagist.org/packages/ikke/phpzabbix)[ RSS](/packages/ikke-phpzabbix/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

PHPZabbix
=========

[](#phpzabbix)

Zabbix PHP API library based on [pyzabbix](https://github.com/lukecyca/pyzabbix).

Example
-------

[](#example)

```
$api = phpzabbix\PHPZabbix::withDefaultClient('http://example.com/zabbix/api_jsonrpc.php');
$api->login('username', 'password');

$hosts = $api->host->get(['output' => ['hostid', 'name']]);

```

It's also possible to directly set the authorization token, either obtained earlier by logging in, or an API token:

```
$api = phpzabbix\PHPZabbix::withDefaultClient('http://example.com/zabbix/api_jsonrpc.php');
$api->authToken = 'abcdef123456';

$hosts = $api->host->get(['output' => ['hostid', 'name']]);

```

Error handling
--------------

[](#error-handling)

The following exceptions can be thrown:

- `phpzabbix\Exception\NotAuthorized` when trying to make an API call with an invalid or expired auth hash.
- `phpzabbix\Exception\InvalidCredentials` when trying to login with invalid credentials.
- `phpzabbix\JSONRPC\ErrorException` on other errors, such as invalid API calls

Documentation
-------------

[](#documentation)

The PHPZabbix class does not know every API call, but just translates `$api->obj->method()` to 'obj.method'. The method call takes an array which is passed as params.

Refer to the [Zabbix API](https://www.zabbix.com/documentation/current/manual/api) for more information about the Zabbix API itself.

Compattibility
--------------

[](#compattibility)

This library should work with Zabbix 3.0 and higher. Older versions should also work, but that has not been verified.

License
-------

[](#license)

This code is distributed under the [GPLv3](LICENSE) license.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~929 days

Total

4

Last Release

602d ago

### Community

Maintainers

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

---

Top Contributors

[![Ikke](https://avatars.githubusercontent.com/u/135698?v=4)](https://github.com/Ikke "Ikke (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ikke-phpzabbix/health.svg)

```
[![Health](https://phpackages.com/badges/ikke-phpzabbix/health.svg)](https://phpackages.com/packages/ikke-phpzabbix)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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