Library to get cadastre information from the official source (made with awesome SOAP) by the spanish government.
This project assumes you have composer installed.
Add the library to your project simply executing:
composer require ibonkonesa/catastro-es
use IbonKonesa\Catastro\Client
----
$client = new Client();
There are many methods exposed:
Returns all spanish regions
Returns towns by a given region. You can also query in order to get more accurated results
Return streets by a given region and town. You can also query in order to get more accurated results with a street type or by name
Check if a number exists by a given region, town and street. If the number does not exist, an array with near numbers will be returned
Returns cadastre information by a given complete address. If there is not a exact match, an array with near cadastral references will be returned
Returns cadastre information by a given reference. If there is not a exact match, an array with near cadastral references will be returned
Execute phpunit to test all previous methods