stepankarlovec/tipsport

用于与 tipsport 通信的 PHP 类

dev-main 2023-10-24 15:26 UTC

This package is auto-updated.

Last update: 2024-09-24 17:32:29 UTC


README

免责声明:这些文件并非来自 Tipsport 的官方文件,此软件使用的是互联网上可用的免费公共数据。

已实现的功能

  • 获取
    • 比赛数据 ✅
    • 竞赛数据 ✅
    • 分析 ❌
    • (数据以相当随机的、非组织化的格式出现)
  • 通信
    • 登录 ❌ (即将推出)
    • 下注 ❌

分享、使用、贡献、享受!

安装

composer require stepankarlovec/tipsport

用法

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

文档

公开方法