FinStat.sk API client for PHP
This is an API client for finstat.sk, Slovakian company register.
composer require hubipe/finstat
So far, in the library, there is only one implemented RequestClient -
GuzzleRequestClient. If you don't want to implement
your own, you'll also need to require
composer require guzzlehttp/guzzle
Using client is easy - all you have to do is initiate
FinStat class by passing it request client, API key and private
<?php use Hubipe\FinStat\FinStat; use Hubipe\FinStat\Request\GuzzleRequestClient; $requestClient = new GuzzleRequestClient(); $client = new FinStat( $requestClient, $apiKey, $privateKey );
When client is instantiated, you can start querying API:
$detailResult = $client->detail('36631124'); $autocompleteResult = $client->autocomplete('Slovenská pošta'); $czAutocompleteResult = $client->czAutocomplete('Česká pošta');
This client has implemented so far these API methods:
- CZ autocomplete
If you wish to implement other methods, please send a pull request.