PHP code example of focus-sports-labs / fsl-data-center
1. Go to this page and download the library: Download focus-sports-labs/fsl-data-center 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/ */
focus-sports-labs / fsl-data-center example snippets
use VelocitySportsLabs\DataCenter\Client;
use VelocitySportsLabs\DataCenter\HttpClient\Options;
// This file is generated by Composer
/ you set this when creating your application
]);
$client = new Client($options);
$response = $client->countries()->list();
// this would give you a list of all countries supported by VSL
dump($response);
use VelocitySportsLabs\DataCenter\Client;
use VelocitySportsLabs\DataCenter\HttpClient\Options;
// This file is generated by Composer
/ you set this when creating your application
]);
$client = new Client($options);
// use the request helper to access endpoints
$countries = $client->request('countries')->list();
// or use the magic method to access endpoints
$countries = $client->countries()->list();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.