PHP code example of kokspflanze / alpha-vantage-api
1. Go to this page and download the library: Download kokspflanze/alpha-vantage-api 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/ */
kokspflanze / alpha-vantage-api example snippets
// Option
$option = new AlphaVantage\Options();
$option->setApiKey('YOUR_KEY');
// Client
$client = new AlphaVantage\Client($option);
var_dump($client->foreignExchange()->currencyExchangeRate('BTC', 'CNY'));
return [
'dependencies' => [
'factories' => [
'alphavantage' => \AlphaVantage\Factory\AlphaVantageFactory::class,
],
],
];
return [
'alpha_vantage' => [
'api_key' => 'APIKEY',
]
];
php composer.phar
php composer.phar