stepankarlovec/tipsport 问题修复 & 功能扩展

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

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

stepankarlovec/tipsport

Composer 安装命令:

composer require stepankarlovec/tipsport

包简介

php class for communicating with tipsport

README 文档

README

Disclaimer: These are not official files from Tipsport, this piece of software uses free public data avaliable on the internet.

What is implemented

  • Fetching
    • Match data ✅
    • Competition data ✅
    • Analyzes ❌
    • (the data comes in pretty random not organized format)
  • Communication
    • Login ❌ (soon)
    • Place bet ❌

Share, use, contribute, enjoy!

Installation

composer require stepankarlovec/tipsport

Usage

<?php
// require your Tipsport.php class from somewhere
require_once 'bootstrap.php';

// initialize Tipsport class
$TS = new Tipsport();

// Get all matches which includes text "Sparta"
$search = $TS->search("Sparta");

// Get match details about the first one
$result = $TS->getMatchDetails($search[0]["matchId"]);

// Finds all opportunities which include opportunityName "Remíza"
$draw = $TS->opportunityFilter($detail, 'opportunityName', 'Remíza');

echo $draw[0]["opportunityName"] . ": " . $draw[0]["currentOdd"];
// Remíza: 3.75

Documentation

Public methods

Function name Description Parameters
getCompetitions() competitions -
getCompetitionsByName() competitions by name string $searchValue
getSports() sports -
getSportByName() sports by name String $searchValue
topCompetitions() top competitions -
getOfferData() get offer data -
getCompetitionMatches() get competition matches int $competitionId
search() search String $searchValue
getMatchDetails() get match details int $matchId
opportunityFilter() filter opportunities array $data, String $key, String $value

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-23