armandsar/pinnacle-pineapple 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

armandsar/pinnacle-pineapple

Composer 安装命令:

composer require armandsar/pinnacle-pineapple

包简介

Api client for pinnaclesports

README 文档

README

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.

统计信息

  • 总下载量: 1.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固