armandsar / pinnacle-pineapple
Api client for pinnaclesports
Installs: 1 457
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 6
Open Issues: 0
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~5.3|~6.0
- illuminate/support: >=5.1.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-11-17 07:47:52 UTC
README
Simple pinnacle api client for Laravel 5.
Install
Via Composer
$ composer require armandsar/pinnacle-pineapple
After updating composer, add the ServiceProvider to the providers array in config/app.php
Armandsar\PinnaclePineapple\PinnaclePineappleServiceProvider::class,
Publish api credentials config
$ php artisan vendor:publish
Usage
$client = new Armandsar\PinnaclePineapple\PinnacleClient();
or let Laravel do this by type hinting dependency in constructors or controller methods
Available methods
Odds:
$client->odds($options);
Special Odds:
$client->specialOdds($options);
Fixtures:
$client->fixtures($options);
Special Fixtures:
$client->specialFixtures($options);
Settled fixtures:
$client->settledFixtures($options);
Leagues:
$client->leagues($options);
Sports:
$client->sports($options);
$options is just an array for passing in parameters and values to api, for most of the endpoints some sort of parameter will be required
You can also use chainable method since to pass this parameter
$client->since($when)->odds(['sportId' => 29]);
Testing
$ phpunit
License
The MIT License (MIT). Please see License File for more information.