PHP code example of cheesaw / alpha-vantage-bundle
1. Go to this page and download the library: Download cheesaw/alpha-vantage-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cheesaw / alpha-vantage-bundle example snippets
/**
* @Route("test/av/get", name="cheesaw_alphavantage_test")
* @throws Exception
*/
public function alphaVantageTestAction(AlphaVantage $alphaVantageClient): Response
{
$stockTimeSeries = new StockTimeSeries(StockTimeSeries::GLOBAL_QUOTE, 'BLDP');
$response = $alphaVantageClient->get($stockTimeSeries);
return new Response($response);
}