tatarysh / soap-ceidg
The purpose of this package is to get company data from the CEIDG database using their public API.
0.2-alpha-1
2019-11-27 20:33 UTC
Requires
- ext-soap: *
- phpro/soap-client: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.4
- roave/security-advisories: dev-master
- symfony/var-dumper: ^5.0
- zendframework/zend-code: ^3.1.0
This package is auto-updated.
Last update: 2025-03-04 08:53:23 UTC
README
The purpose of this package is to get company data from the CEIDG database using their public API.
All API queries require an authorization key. You can get it by registering on the government website.
Installation
You need to use Composer to add the CEIDG Soap Client to your project:
composer require tatarysh/soap-ceidg
Usage
<?php use TataRysh\Ceidg\CeidgClientFactory; use TataRysh\Ceidg\Type\GetID; use TataRysh\Ceidg\Type\GetMigrationData201901; $token = 'your-token'; $client = CeidgClientFactory::factory(); $params = (new GetID())->withAuthToken($token); $response = $client->getID($params); var_dump($response->getGetIDResult()); $params = (new GetMigrationData201901())->withAuthToken($token); $response = $client->getMigrationData201901($params); var_dump($response->getGetMigrationData201901Result());
To read more about the return data format, see: here.
Information
CEIDG Soap Client package has been created using phpro/soap-client wizard.
Package is still in pre-release stage.
TODO
- unit tests
- code optimization
- psr standards