dev-master
9999999-dev https://github.com/caxy/badgekit-clientClient for Mozilla BadgeKit API
MIT
The Requires
The Development Requires
Client for Mozilla BadgeKit API
![Latest Version on Packagist][ico-version]
, (*1)
Here is a PHP client for Mozilla's BadgeKit API., (*2)
Via Composer, (*3)
``` bash $ composer require caxy/badgekit-client, (*4)
## Usage ``` php $client = new GuzzleHttp\Client([ 'base_uri' => 'https://badgekit.example.com' ]); $middleware = new Caxy\BadgeKit\JwtMiddleware('MASTER_SECRET_FROM_BADGEKIT'); $stack = $client->getConfig('handler'); $stack->push(GuzzleHttp\Middleware::mapRequest($middleware)); $serviceClient = new Caxy\BadgeKit\ServiceClient($client); $command = $serviceClient->getCommand('get_reviews', [ 'system' => 'example', 'application' => '235f684c5e5f88f1575434403adc2562', 'badge' => 'a-groovy-badge', ]); $result = $serviceClient->execute($command);
Please see CHANGELOG for more information what has changed recently., (*5)
bash
$ composer test
, (*6)
Please see CONTRIBUTING and CONDUCT for details., (*7)
If you discover any security related issues, please email bdoherty@caxy.com instead of using the issue tracker., (*8)
The MIT License (MIT). Please see License File for more information., (*9)
Client for Mozilla BadgeKit API
MIT