PHPackages                             patrolserver/patrolsdk-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. patrolserver/patrolsdk-php

ActiveLibrary[API Development](/categories/api)

patrolserver/patrolsdk-php
==========================

PatrolServer PHP Library

1.0.1(10y ago)15321MITPHPPHP &gt;=5.3.3

Since Oct 16Pushed 10y ago3 watchersCompare

[ Source](https://github.com/PatrolServer/patrolsdk-php)[ Packagist](https://packagist.org/packages/patrolserver/patrolsdk-php)[ Docs](https://patrolserver.com/)[ RSS](/packages/patrolserver-patrolsdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

PatrolServer PHP SDK
====================

[](#patrolserver-php-sdk)

The PHP SDK provides a stable interface to implement PatrolServer functionality in your own applications. You can signup for a PatrolServer account at . For a more in-depth explanation on how webhooks work, check out the blog post covering the introduction of PatrolServer's webhooks at .

Requirements
------------

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

You can install the SDK via [Composer](https://getcomposer.org/). Add the following rules to your `composer.json`.

```
{
  "require": {
    "patrolserver/patrolsdk-php": "1.*"
  }
}

```

Next, install the composer packages with:

```
composer install

```

In order to use the SDK, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

If you do not want to install the SDK with Composer, you can download the latest version here and require `init.php` in the `lib` folder.

Usage
-----

[](#usage)

```
// Use the Singleton or create a separate PatrolSdk\Patrol object
use PatrolSdk\Singleton as Patrol;

Patrol::setApiKey('194786f61ea856b6468c0c41fa0d4bdb');
Patrol::setApiSecret('D6360a34e730ae96d74f545a286bfb01468cd01bb191eed49d9e421c2e56f958');

Patrol::webhook('webhook.scan_finished', function ($event) {
	$server_id = $event['server_id'];

	if ($server_id) {
		// Get the Server object from the server_id
		$server = Patrol::server($server_id);

		// Get the installed software
		$software = $server->allSoftware();
	}
});
```

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

[](#documentation)

See  for the latest documentation.

[![Analytics](https://camo.githubusercontent.com/7ce76d2c0c24e8cc8d705747b151b325515c53c72cafe7141bb7b0f5fdc8cd9f/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36353033363233332d312f506174726f6c5365727665722f706174726f6c73646b2d7068703f706978656c)](https://github.com/igrigorik/ga-beacon)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.9% 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 ~6 days

Total

2

Last Release

3861d ago

### Community

Maintainers

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

---

Top Contributors

[![matvp](https://avatars.githubusercontent.com/u/2565182?v=4)](https://github.com/matvp "matvp (13 commits)")[![matvp91](https://avatars.githubusercontent.com/u/12699796?v=4)](https://github.com/matvp91 "matvp91 (8 commits)")

---

Tags

apipatrolserversecurity monitoroutdated software scanner

### Embed Badge

![Health badge](/badges/patrolserver-patrolsdk-php/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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