marekskopal / openfigi
OpenFIGI API client library
v0.2.2
2024-05-01 18:35 UTC
Requires
- php: >=8.2
- php-http/discovery: ^1.19
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.1 || ^2.0
Requires (Dev)
- php-http/guzzle7-adapter: ^1.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.2
- slevomat/coding-standard: ^8.14
- spatie/ray: ^1.39
Suggests
- nyholm/psr7: PSR-7 message implementation
- symfony/http-client: HTTP client
README
Unofficial PHP API client library for the OpenFIGI API service.
Install
composer require marekskopal/openfigi
Usage
use MarekSkopal\OpenFigi\OpenFigi; use MarekSkopal\OpenFigi\Enum\IntervalEnum; // Create OpenFIGI instance $openFigi = new OpenFigi('<yourApiKey>'); // Get the mapping for the AAPL ticker $mappingJob = new MappingJob(idType: IdTypeEnum::Ticker, idValue: 'AAPL'); $mappingResults = $openFigi->mapping([$mappingJob]));
Notice
This is NOT an official OpenFIGI library, and the authors of this library are not affiliated with OpenFIGI or Bloomberg Finance L.P. in any way, shape or form.
Contributing
If you want to contribute, feel free to submit a pull request.