PHP code example of focus-sports-labs / data-center-laravel

1. Go to this page and download the library: Download focus-sports-labs/data-center-laravel 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 / data-center-laravel example snippets




return [
    'api_base' => env('FSL_DATA_CENTER_BASE_URL', ''),

    'api_key' => env('FSL_DATA_CENTER_KEY'),

    'origin' => env('FSL_DATA_CENTER_ORIGIN'),

    'user_agent' => env('FSL_DATA_CENTER_USER_AGENT', ''),
];

FSL_DATA_CENTER_USER_AGENT="${APP_NAME}"

use FocusSportsLabs\FslDataCenter\FslDataCenter;

FSLDataCenter::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="FocusSportsLabs\FslDataCenter\FSLDataCenterServiceProvider"