PHPackages                             satrobit/prtg-php - 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. satrobit/prtg-php

ActiveLibrary[API Development](/categories/api)

satrobit/prtg-php
=================

PHP API Wrapper for PRTG

61101[1 issues](https://github.com/satrobit/prtg-php/issues)PHP

Since Aug 25Pushed 4y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

prtg-php
========

[](#prtg-php)

Using this library you can get details on your sensors , create charts and more

Install
-------

[](#install)

### Using Composer

[](#using-composer)

Add this package to your `composer.json`:

```
"require": {
    "satrobit/prtg-php": "dev-master"
}
```

or by command line :

```
composer require satrobit/prtg-php
```

Usage
-----

[](#usage)

You need to construct a client first.

```
$client = new prtg(SERVER, USERNAME, PASSWORD);
```

like this:

```
$client = new prtg('https://prtg.paessler.com/', 'demo', 'demo');
```

Now you can use these methods to interact with the API:

### Method: getsensordetails

[](#method-getsensordetails)

This method returns details of a specified sensor

**Parameters:**

NameTypeDescriptionsensorIdintSensor ID in PRTG**Example:**

```
$sensorDetails = $client->getsensordetails(2017);
```

### Method: historicdata

[](#method-historicdata)

This method returns historic data on a specified sensor

**Parameters:**

NameTypeDescriptionsensorIdintSensor ID in PRTGsdatestringStarting dateedatestringEnding dateavgintAverage**Example:**

```
$historicData = $client->historicdata('2017', '2017-07-26', '2017-07-27', 15);
```

### Method: chart

[](#method-chart)

This method returns a chart of a specified sensor

**Parameters:**

NameTypeDescriptionsensorIdintSensor ID in PRTGsdatestringStarting dateedatestringEnding dategraphidintGraph IDtypestringReturned object type like svg, pngavgintAverageheightintHeight of the chart (px)widthintWidth of the chart (px)**Example:**

```
$chart = $client->chart(2017, '2017-07-26', '2017-07-27', 2, 'svg', 15, 270, 850);
```

Examples
--------

[](#examples)

Check out [examples.php](examples.php) .

License
-------

[](#license)

This project is released under the [MIT](https://github.com/satrobit/prtg-php/blob/master/LICENSE) License.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/54cfa402d95be509d8b8f1bbd850564ad99e40a775ee5e02b39a23e8267ca0f0?d=identicon)[satrobit](/maintainers/satrobit)

---

Top Contributors

[![satrobit](https://avatars.githubusercontent.com/u/7242206?v=4)](https://github.com/satrobit "satrobit (9 commits)")[![etiennepassemard](https://avatars.githubusercontent.com/u/24649491?v=4)](https://github.com/etiennepassemard "etiennepassemard (1 commits)")

---

Tags

api-clientapi-wrapperphp-libraryprtgprtg-network-monitorprtg-sensors

### Embed Badge

![Health badge](/badges/satrobit-prtg-php/health.svg)

```
[![Health](https://phpackages.com/badges/satrobit-prtg-php/health.svg)](https://phpackages.com/packages/satrobit-prtg-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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