PHPackages                             mangati/cachet - 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. [Caching](/categories/caching)
4. /
5. mangati/cachet

ActiveLibrary[Caching](/categories/caching)

mangati/cachet
==============

Cachet client

v1.0.1(8y ago)134023[1 issues](https://github.com/mangati/cachet/issues)MITPHPPHP &gt;=5.4

Since Feb 15Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mangati/cachet)[ Packagist](https://packagist.org/packages/mangati/cachet)[ RSS](/packages/mangati-cachet/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Cachet
======

[](#cachet)

Cachet PHP client.

About Cachet
------------

[](#about-cachet)

Cachet is an open source status page system written in PHP. .

Usage
-----

[](#usage)

Setup

```
use Mangati\Cachet\Client;

$endpoint = 'https://demo.cachethq.io/api/v1/';
$token    = '9yMHsdioQosnyVK4iCVR';

$client = new Client($endpoint, $token);
```

### Components

[](#components)

Get components

```
$components = $client->getComponents();

foreach ($components as $component) {
    echo $component->getName();
}
```

Sorting

```
$components = $client->getComponents([
    'sort' => 'id',
    'order' => 'desc'
]);
```

Get by id

```
$component = $client->getComponent(3);
```

Create new component

```
$component = new Component();
$component->setName('My new component');
$component->setDescription('Component description');
$component->setLink('https://github.com/mangati/cachet');
$component->setStatus(Component::STATUS_OPERATIONAL);

$client->addComponent($component);
```

Update an existing component

```
$component = new Component();
$component->setId(3);
$component->setName('My new component (updated)');

$client->updateComponent($component);
```

Delete an existing component

```
$id = 3;

$client->deleteComponent($id);
```

### Incidents

[](#incidents)

Get incidents

```
$incidents = $client->getIncidents();

foreach ($incidents as $incident) {
    echo $incident->getName();
}
```

Sorting

```
$incidents = $client->getIncidents([
    'sort' => 'id',
    'order' => 'desc'
]);
```

Get by id

```
$incident = $client->getIncident(3);
```

Create new incident

```
$incident = new Incident();
$incident->setName('My new incident');
$incident->setMessage('incident message');
$incident->setStatus(Incident::STATUS_WATCHING);

$client->addIncident($incident);
```

Update an existing incident

```
$incident = new Incident();
$incident->setId(3);
$incident->setStatus(Incident::STATUS_FIXED);

$client->updateIncident($incident);
```

Delete an existing incident

```
$id = 3;

$client->deleteIncident($id);
```

Known issue
-----------

[](#known-issue)

Doctrine annotation error:

```
PHP Fatal error:  Uncaught exception 'Doctrine\Common\Annotations\AnnotationException' with message '[Semantical Error] The annotation "@JMS\Serializer\Annotation\Type" in property (...) does not exist, or could not be auto-loaded.'
```

Can fix it registering the JMS namespace:

```
Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace('JMS\Serializer\Annotation', $rootDir . "/vendor/jms/serializer/src");
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.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 ~692 days

Total

2

Last Release

3087d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1065082?v=4)[Rogério Lino](/maintainers/rogeriolino)[@rogeriolino](https://github.com/rogeriolino)

---

Top Contributors

[![rogeriolino](https://avatars.githubusercontent.com/u/1065082?v=4)](https://github.com/rogeriolino "rogeriolino (15 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")

---

Tags

cachetcachet-php-clientincidentphpclientstatuscachetCachetHQ

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mangati-cachet/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[svix/svix

Svix PHP Library

3.3k877.5k7](/packages/svix-svix)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)

PHPackages © 2026

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