PHP code example of drsdre / yii2-oddsgg-api
1. Go to this page and download the library: Download drsdre/yii2-oddsgg-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/ */
drsdre / yii2-oddsgg-api example snippets
'components' => [
'oddsGGApi' => [
'class' => 'drsdre\OddsGG\Client',
'service_url' => 'zzz',
'api_key' => 'xxx',
]
...
]
$client = new \drsdre\OddsGG\Client([
'service_url' => 'yyy',
'api_key' => 'xxx',
]);