PHP code example of bilaleren / broadage-api

1. Go to this page and download the library: Download bilaleren/broadage-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bilaleren / broadage-api example snippets


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' => []
    ]
]);

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