ivuorinen / business-data-fetcher
Library to fetch finnish business data
v1.1.1
2024-08-22 19:44 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.4
- spatie/data-transfer-object: ^3.9
Requires (Dev)
- ivuorinen/markdowndocs: ^4.0
- phpstan/phpstan: ^1.11
- squizlabs/php_codesniffer: ^3.10
This package is auto-updated.
Last update: 2024-11-13 11:17:43 UTC
README
This is an API client to Finnish Patent and Registration Office's (PRH) Business Information System (BIS) v1.
Use it to get company data from the Business Information System by Business ID.
Installation
composer install ivuorinen/business-data-fetcher
Usage example
<?php require_once 'vendor/autoload.php'; $client = new Ivuorinen\BusinessDataFetcher\BusinessDataFetcher(); try { $results = $client->getBusinessInformation('1639413-9'); print_r($results); } catch (\GuzzleHttp\Exception\GuzzleException $e) { var_dump($e); }
Data source
All models are transcribed from PRH Open Data portal. You can find the examples and models descriptions, among other details and live API query tool following this link: https://avoindata.prh.fi/ytj_en.html
Notice of Liability
The data provided by the API is subject to change without warning and the author(s) of this library are providing this without compensation and cannot be held responsible.