john_zuk / php-nbp-api
NBP (Narodowy Bank Polski) API client
Installs: 10 585
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
- ext-json: *
- php-http/client-common: ^2.0
- php-http/discovery: ^1.6
- php-http/httplug: ^2.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.2
- http-interop/http-factory-guzzle: ^1.0
- nyholm/psr7: ^1.3
- phpstan/phpstan: ^0.12.65
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^4.4
Provides
This package is auto-updated.
Last update: 2024-12-22 06:06:38 UTC
README
Installation
Via composer
composer require john_zuk/php-nbp-api guzzlehttp/guzzle:^7.2 http-interop/http-factory-guzzle:^1.0
Example API Usage
require_once 'vendor/autoload.php'; $client = new \NBP\Client(); $usd = $client->rates()->code('a', 'usd'); echo $usd['rates'][0]['mid'];
php doc/example.php