PHP code example of velocity-sports-labs / datacenter-laravel-sdk
1. Go to this page and download the library: Download velocity-sports-labs/datacenter-laravel-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/ */
velocity-sports-labs / datacenter-laravel-sdk example snippets
return [
'api_base' => env('VSL_DATA_CENTER_BASE_URL', ''),
'api_key' => env('VSL_DATA_CENTER_KEY'),
'origin' => env('VSL_DATA_CENTER_ORIGIN'),
'user_agent' => env('VSL_DATA_CENTER_USER_AGENT', ''),
];
VSL_DATA_CENTER_USER_AGENT="${APP_NAME}"
use VelocitySportsLabs\DataCenter\DataCenter;
DataCenter::countries()->list();
// we're done here - how easy was that, it just works!
// this example is simple, and there are far more methods available
bash
php artisan vendor:publish --provider="VelocitySportsLabs\DataCenter\DataCenterServiceProvider"