armandsar/pinnacle-pineapple

Api client for pinnaclesports
1,460 7
Install
composer require armandsar/pinnacle-pineapple
Latest Version:0.1.2
PHP:>=5.5.0
Laravel:5
License:MIT
Last Updated:Feb 6, 2018
Links: GitHub  ·  Packagist
Maintainer: armandsar

Pinnacle Pineapple

Software License Build Status Total Downloads

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.

Related Packages

railken/lara-eye
38,915 39
api
juampi92/api-resources

Manage your resources maintaining API versioning

934,433 111
tailflow/laravel-orion

Orion for Laravel allows you to build a fully featured REST API based on your El...

795,245 1,593
unlu/laravel-api-query-builder

Laravel API Query Builder Package.

719,901 329
juampi92/phecks

A package to run custom PHP checks

410,521 4

Version History

Version Released PHP Laravel License
0.1.2 >=5.5.0 >=5.1.0 MIT
0.1.1 >=5.5.0 >=5.1.0 MIT
0.1.0 >=5.5.0 >=5.1.0 MIT
0.0.0 >=5.5.0 >=5.1.0 MIT