PHPackages                             hguenot/oecd-pib - 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. hguenot/oecd-pib

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

hguenot/oecd-pib
================

Wrapper for PIB csv from https://data.oecd.org/fr/gdp/produit-interieur-brut-pib.htm

V1.0.1(3y ago)022PHP

Since Mar 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hguenot/oecd-pib)[ Packagist](https://packagist.org/packages/hguenot/oecd-pib)[ RSS](/packages/hguenot-oecd-pib/feed)WikiDiscussions main Synced 2d ago

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

OEICD PIB
=========

[](#oeicd-pib)

This package is a PHP wrapper for csv coming from .

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

[](#installation)

Install using composer :

> composer require hguenot/oecd-pib

Usage
-----

[](#usage)

The package offers only one singleton class `\data\oecd\pib\PibDb`.

Use the `getInstance` method to get the instance.

- `getCountries` list all available countries in the file

    It returns an array of `string`
- `getYears` list all available years in the file

    It returns an array of `int`
- `getAll` retrieves all PIB data
- `getValuesForCountry` list all values for a specific country, order by year
- `getValuesForYear` list all values for a specific year, order by country
- `getLatestValues` list last available values indexed by country

The last methods returns an iterable. Each value is an associative array :

- `LOCATION`: Country code
- `INDICATOR`: Always "`GDP`"
- `SUBJECT`: always "`TOT`"
- `MEASURE`:
    - "`USD_CAP`" (USD per Capita)
    - "`MLN_USD`" (Million USD)
- `FREQUENCY`: always "`A`"
- `TIME`: the year
- `Value`: The PIB value
- `Flag Codes`: ?

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~10 days

Total

2

Last Release

1208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f980dc7f653be656d2725f6457567a666e792e4173ba57536de674b6f3e291e?d=identicon)[hguenot](/maintainers/hguenot)

---

Top Contributors

[![hguenot](https://avatars.githubusercontent.com/u/2578010?v=4)](https://github.com/hguenot "hguenot (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hguenot-oecd-pib/health.svg)

```
[![Health](https://phpackages.com/badges/hguenot-oecd-pib/health.svg)](https://phpackages.com/packages/hguenot-oecd-pib)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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