PHP code example of ezzaze / airlabs

1. Go to this page and download the library: Download ezzaze/airlabs 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/ */

    

ezzaze / airlabs example snippets


return [
    'api_key' => env('AIRLABS_API_KEY', ''),
    'version' => env('AIRLABS_API_VERSION', 'v9'),
    'cache' => [
        'enabled' => env('AIRLABS_API_CACHE_ENABLED', false),
        'lifetime' => env('AIRLABS_API_CACHE_LIFETIME', null)
    ]
];

use Ezzaze\Airlabs\Facades\Airlabs;

$airports = Airlabs::airports();

$usaCities = Airlabs::cities(['country_code', 'US']);

$timezones = Airlabs::verifyPeer(false)->airports();
bash
php artisan vendor:publish --tag="airlabs-config"