thomasboom89/bundesliga-live-results

This is a scraper for Deutsche Fussball Bundesliga 1 & 2 live results

v0.0.3 2023-02-25 10:32 UTC

README

PHP License

A scraper for for Deutsche Fussball Bundesliga 1 & 2 live results.

Attention!

I am not owner or maintainer of the website (https://bundesliga.com). This is only a scraper for live results. Use at your own risk.

Requirement

You need a working environment with php <= 8.1 and composer.

Installation

composer require thomasboom89/bundesliga-live-result-scraper 

Usage

Create an instance of Bundesliga

$httpClient     = new Client();
$requestFactory = new HttpFactory();
$bundesliga     = new Bundesliga($httpClient, $requestFactory);

Now you can use it to make a request

// You can choose between Erste and Zweite Bundesliga
$results = $bundesliga->getResults(Bundesliga\LigaType::SecondBundesliga);

You will receive an array of result objects

var_dump($results);

License

Bundesliga Live Result Scraper Copyright (C) 2023 ThomasBoom89. MIT license.

Bundesliga Live Result Scraper includes several third-party Open-Source libraries, which are licensed under their own respective Open-Source licenses.

See composer license for complete list of depending libraries.