tschope / finnhubio
This lib is a simple integration with Finnhub.io to get stock market details
This package's canonical repository appears to be gone and the package has been frozen as a result.
v0.4.1
2020-04-14 10:39 UTC
Requires
- guzzlehttp/guzzle: ~5.3|^6.3|~7.0
README
This is a wrapper for the https://finnhub.io/docs/api
Installation
composer require tschope/finnhubio
- Get a Finnhub API Key from the Intergrations page of your Finnhub account.
- Laravel 6.x or earlier, in your
config/app.php
file:- Add
Tschope\Finnhubio\FinnhubioServiceProvider::class
to your providers array.
- Add
php artisan vendor:publish --provider="Tschope\Finnhubio\FinnhubioServiceProvider" --tag="config"
will create aconfig/finnhubio.php
file.
Usage
Route::get('/', function () { $stock = new \Tschope\Finnhubio\Stock(); return response()->json($stock->quote('MGLU3.SA')); });
For more info on using the actual API see the main repo https://finnhub.io/docs/api