kartulin / fmp-api-sdk
FMP-API-SDK
v1.0.0
2022-06-01 12:28 UTC
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: *
Requires (Dev)
- phpunit/phpunit: ^9.0
- symfony/var-dumper: *
This package is auto-updated.
Last update: 2024-10-29 06:25:35 UTC
README
Comfortable library to work with FinancialModelingPrep.com. Easily integrates with any php-framework. You must have api_key to start working. It's free...
Installation
You can install the package via composer (php 7.4 and higher):
composer require kartulin/fmp-api-sdk
Usage
use Kartulin\FmpApiSdk\FMP; $token='you_api_key_here'; //You must initialize the client with $token //You can use DI of your framework $client = FMP::make($token); // or $client = new FMP($token); // Select required endpoint with arguments $response = $client->companyQuote('aapl', true)->get(); // or $response = FMP::make($config)->companyQuote('AAPL', true)->get(); var_dump($response) // is array ^ array:1 [▼ 0 => {#37 ▼ +"symbol": "AAPL" +"name": "Apple Inc." +"price": 148.84 +"changesPercentage": -0.53461844 +"change": -0.80000305 +"dayLow": 146.84 any_data } ]
All endpoint classes are well documented, have link to FMP documentation service. Also autocomplete IDE is working.
list of available Endpoints and classes of this package
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email stalkerxxl@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.