With this package, you can easily perform operations such as parcel inquiry, provincial list, district list, and neighborhood list from TKGM API.
You can install the package via composer:
composer require burakaktna/tkgmservice
require_once 'vendor/autoload.php';
use Burakaktna\TKGMService\TKGMService;
$tkgmService = new TKGMService();
$provinces = $tkgmService->getProvinces();
print_r($provinces);
require_once 'vendor/autoload.php';
use Burakaktna\TKGMService\TKGMService;
$tkgmService = new TKGMService();
$districts = $tkgmService->getDistricts(int $provinceId);
print_r($districts);
require_once 'vendor/autoload.php';
use Burakaktna\TKGMService\TKGMService;
$tkgmService = new TKGMService();
$neighborhoods = $tkgmService->getNeighborhoods(int $districtId);
print_r($neighborhoods);
require_once 'vendor/autoload.php';
use Burakaktna\TKGMService\TKGMService;
$tkgmService = new TKGMService();
$parcel = $tkgmService->parcelInquiry(int $neighborhoodId, int $bobId, int $parcelId);
print_r($parcel);
Also, you can see more examples in the examples folder.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email burak.aktna@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.