bilaleren/broadage-api

Broadage Sports provides comprehensive sports data API solutions for your projects.


Keywords
sports api, Soccer api, Volleybol api, Baseball api, Football api, Handball api, Volleyball api, Ice hockey api, Broadage, Broadage api
License
MIT

Documentation

Broadage Sports API's

Broadage Sports provides comprehensive sports data API solutions for your projects. Read Full Docs.

Prerequisites

PHP >= 7.1

Installation

composer require bilaleren/broadage-api

Usage

use BroadAgeApi\BroadAgeApi;
use BroadAgeApi\Util\Accepts;
use BroadAgeApi\Util\Languages;

BroadAgeApi::init([
    'baseURL' => 'https://broadage-base-url.com',
    'subscriptionKey' => '###-####-#####-#####',
    'languageId' => Languages::TURKISH, // default Languages::ENGLISH
    'accept' => Accepts::XML, // default Accepts::JSON
    'requestOptions' => [ // optional
        'timeout' => 6.0,
        'headers' => []
    ]
]);

Functions

use function BroadAgeApi\{
    init,
    soccer,
    basketball,
    football,
    baseball,
    iceHockey,
    volleyball,
    handball,
    globalData
};

Global API

Sports

Utils