Download the PHP package webcore/snitcher without Composer
On this page you can find all versions of the php package webcore/snitcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webcore/snitcher
More information about webcore/snitcher
Files in webcore/snitcher
Package snitcher
Short Description Simple API client for Dead Man's Snitch
License MIT
Informations about the package snitcher
PHP Snitcher
Simple API client for Dead Man's Snitch inspired by official Ruby client
Install
Via Composer
Snitcher depends on HTTPlug HTTP client abstraction for PHP. You can read more about HTTPlug framework integration with Symfony bundle in HTTPlug docs.
Usage
Example with Guzzle HTTP client
Install dependencies:
-
Implementation of HttpClient adapter using Guzzle
- Implementations of MessageFactory, StreamFactory and UriFactory
Create required factories:
Create Snitcher instance:
To check in for one of your snitches:
You also may provide a message with the check in:
If error occurs one of these exceptions is thrown:
Sample composer.json:
TODO
- Client for Dead Man's Snitch's JSON API
- Unit tests
MIT license
Copyright (c) 2016, Štefan Peťovský
All versions of snitcher with dependencies
webcore/validation-traits Version ^1.0
php-http/client-implementation Version ^1.0
php-http/message-factory Version ^1.0.2
guzzlehttp/psr7 Version ^1.3.0