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
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

kavenegar/laravel

laravel 4 and 5 kavenegar integration

373,485 86
cyvelnet/laravel5-fractal

A simple fractal service provider and transformer generator with model attribute...

190,086 79
pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

106,909 123
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,316 160

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