PHP code example of joseraul / alpha-vantage-api

1. Go to this page and download the library: Download joseraul/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/ */

    

joseraul / alpha-vantage-api example snippets


$data = $alpha_vantage
    ->stock()
    ->daily('GOOGL');

$data = $alpha_vantage
    ->stock()
    ->dailyAdjusted('GOOGL');

$data = $alpha_vantage
    ->stock()
    ->weekly('GOOGL');

$data = $alpha_vantage
    ->stock()
    ->weeklyAdjusted('GOOGL');

$data = $alpha_vantage
    ->stock()
    ->monthly('GOOGL');

$data = $alpha_vantage
    ->stock()
    ->monthlyAdjusted('GOOGL');

$data = $alpha_vantage
    ->currency()
    ->exchange('BTC', 'USD');