PHP code example of sergeynezbritskiy / nova-poshta-api
1. Go to this page and download the library: Download sergeynezbritskiy/nova-poshta-api 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/ */
sergeynezbritskiy / nova-poshta-api example snippets
//create client for connecting with API
$client = new \SergeyNezbritskiy\NovaPoshta\Client('<your_api_key>');
//run the request
$result = $client->address->getCities();