PHPackages                             webcore/snitcher - 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. webcore/snitcher

ActiveLibrary[API Development](/categories/api)

webcore/snitcher
================

Simple API client for Dead Man's Snitch

v0.1.0(9y ago)00MITPHPPHP &gt;=5.6

Since Jun 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/webcore/snitcher)[ Packagist](https://packagist.org/packages/webcore/snitcher)[ RSS](/packages/webcore-snitcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

PHP Snitcher
============

[](#php-snitcher)

Simple API client for [Dead Man's Snitch](https://deadmanssnitch.com) inspired by official [Ruby client](https://github.com/deadmanssnitch/snitcher)

[![Dependency Status](https://camo.githubusercontent.com/1e060be14fa1d19cc4512b97d3116b3f62906a15cbdacf7b4e3fbfb0927f9c8a/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537353935656634373735376130303034316233623265652f62616467652e7376673f7374796c653d706c6173746963)](https://www.versioneye.com/user/projects/57595ef47757a00041b3b2ee)[![license](https://camo.githubusercontent.com/078618c3942bdbfebda3c0a16806376e62fa14cbc5208790935c037ec1245748/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776562636f72652f736e6974636865722e7376673f6d61784167653d32353932303030)](https://opensource.org/licenses/MIT)

Install
-------

[](#install)

Via Composer

```
composer require webcore/snitcher

```

Snitcher depends on [HTTPlug](http://httplug.io/) HTTP client abstraction for PHP. You can read more about [HTTPlug framework integration with Symfony bundle](http://docs.php-http.org/en/latest/integrations/symfony-bundle.html) in HTTPlug docs.

Usage
-----

[](#usage)

### Example with Guzzle HTTP client

[](#example-with-guzzle-http-client)

Install dependencies:

- Implementation of HttpClient adapter using Guzzle

    ```
    composer require php-http/guzzle6-adapter

    ```
- Implementations of MessageFactory, StreamFactory and UriFactory

    ```
    composer require php-http/message

    ```

Create required factories:

```
use Http\Adapter\Guzzle6\Client;
use Http\Message\MessageFactory\GuzzleMessageFactory;
use Http\Message\StreamFactory\GuzzleStreamFactory;
use Http\Message\UriFactory\GuzzleUriFactory;

$httpClient = new Client(new GuzzleHttp\Client());
$messageFactory = new GuzzleMessageFactory();
$streamFactory = new GuzzleStreamFactory();
$uriFactory = new GuzzleUriFactory();
```

Create Snitcher instance:

```
use Webcore\Snitcher\Snitcher;
$snitcher = new Snitcher($httpClient, $messageFactory, $streamFactory, $uriFactory);
```

To check in for one of your snitches:

```
$snitcher->snitch("c2354d53d2");
```

You also may provide a message with the check in:

```
$snitcher->snitch("c2354d53d2", "Finished in 23.8 seconds.")
```

If error occurs one of these exceptions is thrown:

```
InvalidArgumentException
HttpClientException
Exception

```

Sample composer.json:
---------------------

[](#sample-composerjson)

```
{
    "name": "some-user/nice-project",
    "require": {
        "webcore/snitcher": "^1.0.0",
        "php-http/guzzle6-adapter": "^1.1.1",
        "php-http/message": "^1.2.0"
    }
}

```

TODO
----

[](#todo)

- Client for [Dead Man's Snitch's JSON API](https://deadmanssnitch.com/docs/api/v1)
- Unit tests

### MIT license

[](#mit-license)

Copyright (c) 2016, Štefan Peťovský

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3621d ago

### Community

Maintainers

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

---

Top Contributors

[![speto](https://avatars.githubusercontent.com/u/421634?v=4)](https://github.com/speto "speto (3 commits)")

### Embed Badge

![Health badge](/badges/webcore-snitcher/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[vin-sw/shopware-sdk

A PHP SDK for Shopware 6 Platform

122469.3k6](/packages/vin-sw-shopware-sdk)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)

PHPackages © 2026

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