PHP code example of domatskiy / boxberry

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

    

domatskiy / boxberry example snippets


use Domatskiy\Boxberry;

$CBoxberry = new Boxberry(<token>);
$ListCities = $CBoxberry->ListCities();

foreach($ListCities->data => $city)
{
    /**
    * @var $city Boxberry\Type\City
    */
    
    var_dump($city);
}