This package makes it easy to interact with the Sqreen API.
This package requires PHP >= 5.5.
You can install the package via composer:
composer require m1guelpf/sqreen-apiYou must pass a Guzzle client and the API token to the constructor of M1guelpf\SqreenAPI\Sqreen.
$sqreen = new \M1guelpf\SqreenAPI\Sqreen('YOUR_SQREEN_API_TOKEN');or you can skip the token and use the connect() method later
$sqreen = new \M1guelpf\SqreenAPI\Sqreen();
$sqreen->connect('YOUR_SQREEN_API_TOKEN');$sqreen->emails($email);$sqreen->ips($ip);$sqreen->getClient();$client = new \GuzzleHttp\Client(); // Example Guzzle client
$sqreen->setClient($client);where $client is an instance of \GuzzleHttp\Client.
Please see CHANGELOG for more information what has changed recently.
$ composer testPlease see CONTRIBUTING for details.
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
The Mozilla Public License 2.0 (MPL-2.0). Please see License File for more information.