PHP code example of beekalam / ir-airports

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

    

beekalam / ir-airports example snippets

 php
e Beekalam\IRAirports\IRAirport;

$airport = IRAirport::fromCode('SYZ');
echo $airport->getType(). PHP_EOL;
echo $airport->getEnglishName() . PHP_EOL;
echo $airport->getPersianName() . PHP_EOL;
echo $airport->getCoordinates() . PHP_EOL;