1. Go to this page and download the library: Download alexbklnv/php-dadata-client 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/ */
alexbklnv / php-dadata-client example snippets
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->cleanAddress('мск сухонска 11/-89');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->suggestionsAddress('москва хабар');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->geocodeAddress('москва сухонская 11');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->geolocate('55.87', '37.653');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->iplocate('46.226.227.20');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->findByCode('9120b43f-2fae-4838-a144-85e43c2bfb29');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->findByCadastre('9120b43f-2fae-4838-a144-85e43c2bfb29');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->findPostUnit('дежнева 2а');
$dadata = new DaDataAddress($token, $secret);
$result = $dadata->suggestCountry('та');
$dadata = new DaDataProfile($token, $secret);
$result = $dadata->getBalance();
$dadata = new DaDataProfile($token, $secret);
$result = $dadata->getStat();
$dadata = new DaDataProfile($token, $secret);
$result = $dadata->getStat('2019-11-01');
$dadata = new DaDataProfile($token, $secret);
$result = $dadata->getRelevance();
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.