omnistate / eurostat
Omnistate Eurostat: European statistics from Eurostat's dissemination API (JSON-stat 2.0, no key) - a dataset's series by its filters, its flags (provisional, estimated, break), the catalogue searched.
Requires
- php: >=8.2
- omnisense/contracts: ^1.0@dev
- omnisense/omnistate: ^1.0@dev
- symfony/http-client: ^6.4|^7.0|^8.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-10 07:27:32 UTC
README
European statistics from Eurostat's dissemination API (API Statistics, JSON-stat 2.0), for omnisense/omnistate: a dataset's series by its filters, each observation's flags (provisional, estimated, a break...), the catalogue searched. Open, no key.
$eurostat = new Eurostat($httpClient); $hicp = $eurostat->series('prc_hicp_manr?freq=M&unit=RCH_A&coicop=CP00&geo=FR', last: 3); $hicp->latest()->value; // 0.7 (2025-12, annual rate of change) $hicp->credit; // "Eurostat, prc_hicp_manr (https://doi.org/10.2908/PRC_HICP_MANR), accessed on 2026-11-10"
No framework needed: the package requires omnisense/omnistate, omnisense/contracts and
symfony/http-client.
Usage policy
policy.json, read on 2026-11-10: no limit stated (unknown), reuse allowed for commercial and
non-commercial purposes under CC BY 4.0 with the source acknowledged and changes indicated.
Responsibility
This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Eurostat or the European Commission. It reaches their service on behalf of whoever runs it, and it does not redistribute their data beyond the short excerpts recorded as test fixtures. Its MIT licence covers this package's code only and grants no right to the service or to its data.
Whoever installs and runs this package is responsible for complying with Eurostat's copyright notice, for acknowledging the source, and for any use made of what it returns. The authors publish it free of charge, make no commercial use of it, and accept no liability for how it is used (see LICENSE).
Documentation
docs/: the requests, the ids, the mapping, errors, verified and not.
License
MIT.