PHPackages                             d1am0nd/alpha-vantage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. d1am0nd/alpha-vantage

ActiveLibrary[API Development](/categories/api)

d1am0nd/alpha-vantage
=====================

Simplified Laravel Alpha Vantage API client

0.1.2(7y ago)103.0k6[3 issues](https://github.com/d1am0nd/alpha-vantage/issues)[1 PRs](https://github.com/d1am0nd/alpha-vantage/pulls)MITPHPPHP ^7.0

Since Jan 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/d1am0nd/alpha-vantage)[ Packagist](https://packagist.org/packages/d1am0nd/alpha-vantage)[ RSS](/packages/d1am0nd-alpha-vantage/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (6)Used By (0)

Simplified Laravel Alpha Vantage API client
===========================================

[](#simplified-laravel-alpha-vantage-api-client)

This is a Laravel package for simplified fetching of finance data from Alpha Vantage API. It's an abstraction layer over Guzzle that aims to remove complexity in connecting it to Alpha Vantage API.

### Docs

[](#docs)

- [Demo](#demo)
- [Installation](#installation)
- [Usage](#usage)
- [Licence](#user-content-license)

Demo
----

[](#demo)

**Getting historical data**

```
// Daily historical data for Bitcoin to USD
$res = \AlphaVantage\Api::digitalCurrency()->daily('BTC', 'USD');
/* Returns
[
    "Meta Data": [
        "1. Information": "Daily Prices and Volumes for Digital Currency", ...
    ],
    "Time Series (Digital Currency Daily)": [
        "2018-01-03": [
            "1a. open (USD)": "14782.09572045", ...
        ],
        "2018-01-02": [
            "1a. open (USD)": "13514.39967186", ...
        ], ...
    ],
]
*/
```

Installation
------------

[](#installation)

1. Run composer `composer require d1am0nd/alpha-vantage`
2. Add your Alpha Vantage API key to .env as `AV_KEY={your key}`

Usage
-----

[](#usage)

API calls are grouped into 5 different groups:

- `Api::stock()` - [Stock Time Series](#stock-time-series)
- `Api::currency()` - [Foreign Exchange](#foreign-exchange)
- `Api::digitalCurrency()` - [Digital &amp; Crypto Currencies](#digital--crypto-currencies)
- `Api::sector()` - [Sector Performances](#sector-performances)
- `Api::general()` - [Technical Indicators &amp; Other](#technical-indicators--other)

Each function described below is called from their respective group as shown in examples.

Functions described below also take an additional parameter `array $params = []`, which can be used to pass any optional parameters if needed.

### Stock Time Series

[](#stock-time-series)

Documented -

#### Example - Microsoft's historical monthly stock data

[](#example---microsofts-historical-monthly-stock-data)

```
use AlphaVantage\Api;
// ...
public function monthlyData()
{
    return Api::stock()->monthly('MSFT');
}
```

#### Methods available

[](#methods-available)

- `intraday($symbol)` -
- `daily($symbol)` -
- `dailyAdjusted($symbol)` -
- `weekly($symbol)` -
- `weeklyAdjusted($symbol)` -
- `monthly($symbol)` -
- `monthlyAdjusted($symbol)` -
- `batchStockQuotes(array $symbols)` -
- `quote($symbol)` -
- `search($keywords)` -

### Foreign Exchange

[](#foreign-exchange)

Documented -

#### Example - Euro to US Dollar

[](#example---euro-to-us-dollar)

```
use AlphaVantage\Api;
// ...
public function currencyExchangeRate()
{
    return Api::currency()->currencyExchangeRate('EUR', 'USD');
}
```

#### Methods available

[](#methods-available-1)

- `currencyExchangeRate($from, $to)` -
- `intraday($from, $to, $interval)` -
- `daily($from, $to)` -
- `weekly($from, $to)` -
- `monthly($from, $to)` -

### Digital &amp; Crypto Currencies

[](#digital--crypto-currencies)

Documented -

#### Example - Bitcoin historical monthly stock data

[](#example---bitcoin-historical-monthly-stock-data)

```
use AlphaVantage\Api;
// ...
public function monthlyData()
{
    return Api::digitalCurrency()->monthly('BTC', 'USD');
}
```

#### Methods available

[](#methods-available-2)

- `intraday($symbol, $market)` -
- `daily($symbol, $market)` -
- `weekly($symbol, $market)` -
- `monthly($symbol, $market)` -

### Sector Performances

[](#sector-performances)

Documented -

#### Example - Sector peformances

[](#example---sector-peformances)

```
use AlphaVantage\Api;
// ...
public function sectorPerformances()
{
    return Api::sector()->sectors();
}
```

#### Methods available

[](#methods-available-3)

- `sectors()` -

### Technical Indicators &amp; Other

[](#technical-indicators--other)

Documented -

Technical methods are not implemented as separate functions. There is a `Api::general()->query($funcName, array $params)` method which allows for custom queries.

#### Example - MACDEXT

[](#example---macdext)

This will query function 'MACDEXT' with additional parameters `symbol`, `interval` and `series_type` as described in the documentation

```
use AlphaVantage\Api;
// ...
public function technicalIndicators()
{
    return Api::general()->query('MACDEXT', [
        'symbol' => 'MSFT',
        'interval' => '15min',
        'series_type' => 'high',
    ]);
}
```

#### Methods available

[](#methods-available-4)

- `query($functionName, array $parameters)`

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~207 days

Total

3

Last Release

2681d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7977901?v=4)[Dev Kordeš](/maintainers/d1am0nd)[@d1am0nd](https://github.com/d1am0nd)

---

Top Contributors

[![d1am0nd](https://avatars.githubusercontent.com/u/7977901?v=4)](https://github.com/d1am0nd "d1am0nd (18 commits)")[![emmerink](https://avatars.githubusercontent.com/u/5856414?v=4)](https://github.com/emmerink "emmerink (2 commits)")

---

Tags

apilaravelalphavantageAlpha Vantage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/d1am0nd-alpha-vantage/health.svg)

```
[![Health](https://phpackages.com/badges/d1am0nd-alpha-vantage/health.svg)](https://phpackages.com/packages/d1am0nd-alpha-vantage)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[kokspflanze/alpha-vantage-api

Alpha Vantage API client

607.7k1](/packages/kokspflanze-alpha-vantage-api)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
