Fetch stock data using any driver.
- PHP 7+
- composer
Syntax: `php stock.php <command> <parameter1> <parameter2>`
Example: `php stock.php profile googl`
Syntax: `php stock.php company_profile COMPANY_STOCK_CODE`
Example: `php stock.php company_profile googl,fb`
COMPANY_STOCK_CODE is case in-sensitive
Syntax: `php stock.php company_quote COMPANY_STOCK_CODE`
Example: `php stock.php company_quote googl,fb`
COMPANY_STOCK_CODE is case in-sensitive
Run composer test
which automatically tests everything under tests
- Edit
src/Stock/Drivers/FMPDriver.php
- To add new methods, add them first in
StockInterface
To create a customer stock data driver
- Create the new driver file in
src/Stock/Drivers
- Simply extend
StockServiceProvider
and implement the necessary methods