PHP code example of masterskill / afa-api-laravel

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

    

masterskill / afa-api-laravel example snippets


use Masterskill\AfaApiLaravel\Domains\Http\City\CityQuery;

$cityQuery = new CityQuery();

$query ="CM-SOA";

$result = $cityQuery->query($query);

print_r($cityQuery);


    switch (($side)) {
        case $side < 2.5:
            return 180;
        case    2.5 <= $side && $side < 15:
            return 155;
        case 15 <= $side && $side < 100:
            return 130;
        case 100 <= $side && $side < 600:
            return 105;
        case 600 <= $side:
            return 80;
    }