PHP code example of mlsapi / mlsapi-php-sdk
1. Go to this page and download the library: Download mlsapi/mlsapi-php-sdk 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/ */
mlsapi / mlsapi-php-sdk example snippets
use Mlsapi\Mlsapi\Client;
$sdk = Client::init($config); // guzzle config .
$sdk->authentication($username, $password); // return auth data.
$sdk = Client::initWithToken($token);
$sdk->teams()->getAll();
$sdk->teams()->getById($id);
// Additional API Endpoints
//
// teams
// players
// hist
// rtd
// assists
// offence
// topscorer
// fixtures
// standings
// news
bash
composer