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. Email us for help if needed.
Installs: 163
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/tschope/finnhubio
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.phpfile:- Add
Tschope\Finnhubio\FinnhubioServiceProvider::classto your providers array.
- Add
php artisan vendor:publish --provider="Tschope\Finnhubio\FinnhubioServiceProvider" --tag="config"will create aconfig/finnhubio.phpfile.
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