PHPackages                             rikukukkaniemi/finnish-company-info - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rikukukkaniemi/finnish-company-info

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rikukukkaniemi/finnish-company-info
===================================

Get Finnish company information using business ID (y-tunnus)

v1.1.0(3y ago)071[1 PRs](https://github.com/RikuKukkaniemi/finnish-company-info/pulls)MITPHPPHP &gt;=8.2

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/RikuKukkaniemi/finnish-company-info)[ Packagist](https://packagist.org/packages/rikukukkaniemi/finnish-company-info)[ RSS](/packages/rikukukkaniemi-finnish-company-info/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (3)Used By (0)

Finnish Company Info
====================

[](#finnish-company-info)

With this PHP library you can easily fetch data on a company given its business ID (y-tunnus):

- Name of the company
- Website
- Current address (street, city, postal code)
- Current main line of business (code and textual description)

Library uses [https://avoindata.prh.fi/ytj\_en.html](https://avoindata.prh.fi/ytj_en.html) as the data source.

Installation
------------

[](#installation)

You can require library with:

```
composer require rikukukkaniemi/finnish-company-info

```

See requirements from [Packagist](https://packagist.org/packages/rikukukkaniemi/finnish-company-info).

How to use
----------

[](#how-to-use)

Here is an example on how to use the library:

```
public function example(CompanyInfoService $companyInfoService): void
{
    try {
        $companyInfo = $companyInfoService->getCompanyInformation('1234567-8');
    } catch (CompanyInfoException) {
        // Handle exception
        return;
    }

    $companyInfo->getName();                                // String
    $companyInfo->getWebsite();                             // String or null

    $currentAddress = $companyInfo->getCurrentAddress();    // Address object
    $currentAddress->getStreet();                           // String
    $currentAddress->getCity();                             // String
    $currentAddress->getPostalCode();                       // String

    $businessLines = $companyInfo->getBusinessLines();      // Array of BusinessLine objects (can be empty)
    $businessLines[0]->getCode();                           // String
    $businessLines[0]->getDescription();                    // String
    $businessLines[0]->getLanguage();                       // String (language of description)
}

```

Note that `CompanyInfoException` is the parent exception. You can also catch a more specific cases of exceptions:

- `InvalidBusinessIdException` when business ID seems to be invalid.
- `CompanyNotFoundException` when company is not found for given business ID.
- `UnexpectedClientDataException` when the data source returns unexpected data. Should not occur unless data source is broken.

The example code can also be found [here](https://github.com/RikuKukkaniemi/finnish-company-info/blob/master/Example/Example.php).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4040578f0d3fbec18d0d9f54b0553404070547fa85b984c2b0478c4690e0ebd?d=identicon)[rikukukkaniemi](/maintainers/rikukukkaniemi)

---

Top Contributors

[![RikuKukkaniemi](https://avatars.githubusercontent.com/u/43863816?v=4)](https://github.com/RikuKukkaniemi "RikuKukkaniemi (43 commits)")

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/rikukukkaniemi-finnish-company-info/health.svg)

```
[![Health](https://phpackages.com/badges/rikukukkaniemi-finnish-company-info/health.svg)](https://phpackages.com/packages/rikukukkaniemi-finnish-company-info)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[forumify/forumify-platform

121.8k11](/packages/forumify-forumify-platform)[kadirov/api-starter-kit

443.9k](/packages/kadirov-api-starter-kit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
