Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ivuorinen committed Aug 13, 2024
1 parent c095988 commit b66a452
Show file tree
Hide file tree
Showing 23 changed files with 1,798 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ Homestead.json
.env*.local
.vercel
next-env.d.ts

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Ismo Vuorinen
Copyright (c) 2024 Ismo Vuorinen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Business Data Fetcher

This is an API client to Finnish Patent and Registration
Office's (PRH) Business Information System (BIS).

Use it to get company data from the Business Information System by Business ID.

## Installation

```bash
composer install ivuorinen/business-data-fetcher
```

## Usage example

```php
<?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.
16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ivuorinen/business-data-fetcher",
"description": "Library to fetch finnish business data",
"type": "library",
"license": "MIT",
"require": {
"php": "^8",
"guzzlehttp/guzzle": "7.4.5",
"spatie/data-transfer-object": "^3.9"
},
"autoload": {
"psr-4": {
"Ivuorinen\\BusinessDataFetcher\\": "src/"
}
}
}
Loading

0 comments on commit b66a452

Please sign in to comment.