PHP Client for the Alpha Vantage service.
composer require joseraul/alpha-vantage-api
use AlphaVantage\Client;
$alpha_vantage = new Client('api_key');
$data = $alpha_vantage
->stock()
->intraday('GOOGL', AlphaVantage\Resources\Stock::INTERVAL_1MIN);
https://www.alphavantage.co/documentation/#time-series-data
https://www.alphavantage.co/documentation/#intraday
$data = $alpha_vantage
->stock()
->intraday('GOOGL', AlphaVantage\Resources\Stock::INTERVAL_1MIN);
https://www.alphavantage.co/documentation/#daily
$data = $alpha_vantage
->stock()
->daily('GOOGL');
https://www.alphavantage.co/documentation/#dailyadj
$data = $alpha_vantage
->stock()
->dailyAdjusted('GOOGL');
https://www.alphavantage.co/documentation/#weekly
$data = $alpha_vantage
->stock()
->weekly('GOOGL');
https://www.alphavantage.co/documentation/#weeklyadj
$data = $alpha_vantage
->stock()
->weeklyAdjusted('GOOGL');
https://www.alphavantage.co/documentation/#monthly
$data = $alpha_vantage
->stock()
->monthly('GOOGL');
https://www.alphavantage.co/documentation/#monthlyadj
$data = $alpha_vantage
->stock()
->monthlyAdjusted('GOOGL');
https://www.alphavantage.co/documentation/#fx
https://www.alphavantage.co/documentation/#currency-exchange
$data = $alpha_vantage
->currency()
->exchange('BTC', 'USD');
https://www.alphavantage.co/documentation/#technical-indicators
https://www.alphavantage.co/documentation/#sma
$data = $alpha_vantage
->indicator()
->sma('GOOGL', AlphaVantage\Resources\Indicator::INTERVAL_1MIN, 60, AlphaVantage\Resources\Indicator::SERIES_TYPE_HIGH);
https://www.alphavantage.co/documentation/#wma
$data = $alpha_vantage
->indicator()
->wma('GOOGL', AlphaVantage\Resources\Indicator::INTERVAL_1MIN, 60, AlphaVantage\Resources\Indicator::SERIES_TYPE_HIGH);