jkbnerad / ares
dev-main
2021-11-22 21:44 UTC
Requires
- php: 8.*
- ext-dom: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- nette/tester: ^2.4
- phpstan/phpstan: ^1.2
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-04-23 02:46:25 UTC
README
PHP knihovna ke stahování informací z ARES (Administrativní registr ekonomických subjektů).
Instalace
composer require jkbnerad/ares
Použití
<?php declare(strict_types=1); $client = new \GuzzleHttp\Client(); $validator = new \phpares\Validator(); $identificationData = new \phpares\IdentificationData($validator, $client); $address = $identificationData->getAddress(48136450);
Výstup
[
'id' => '209604861',
'district' => 'Olomouc',
'city' => 'Olomouc',
'street' => 'Šemberova',
'number' => '66',
'numberType' => '1',
'numberSecondary' => '9',
'zipCode' => '77900'
]