stepankarlovec/tipsport

php class for communicating with tipsport

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

This package is auto-updated.

Last update: 2024-10-24 17:44:36 UTC


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