PHP code example of andonovn / laravel-bets-api
1. Go to this page and download the library: Download andonovn/laravel-bets-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/ */
andonovn / laravel-bets-api example snippets
public function index(\Andonovn\LaravelBetsApi\BetsApi $betsApi)
{
$leagues = $betsApi->soccerLeagues();
// $leagues will now be an array of all the supported leagues in soccer, use it as per your needs
dd($leagues); // take a look at the structure
}
shell
php artisan vendor:publish --provider="Andonovn\LaravelBetsApi\ServiceProvider"