PHPackages                             sukhrobnurali/alphavantage-sdk - 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. sukhrobnurali/alphavantage-sdk

ActiveLibrary[API Development](/categories/api)

sukhrobnurali/alphavantage-sdk
==============================

A lightweight PHP API wrapper for Alpha Vantage.

v1.0.0(1y ago)244MITPHPPHP &gt;=8.1

Since Nov 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sukhrobnurali/alphavantage-sdk)[ Packagist](https://packagist.org/packages/sukhrobnurali/alphavantage-sdk)[ RSS](/packages/sukhrobnurali-alphavantage-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

AlphaVantage SDK
================

[](#alphavantage-sdk)

AlphaVantage SDK is a lightweight PHP wrapper for the Alpha Vantage Stock Market API.

It allows you to quickly integrate real-time stock prices, trends, and historical data into your applications with minimal setup. Whether you're building a financial dashboard, tracking market trends, or simply exploring stock data, this SDK makes it easy to access all the Alpha Vantage endpoints in a clean, modern, and dependency-free way.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [API Documentation](#api-documentation)
    - [Time Series Endpoints](#time-series-endpoints)
    - [Technical Indicator Endpoints](#technical-indicator-endpoints)
    - [Forex Endpoints](#forex-endpoints)
    - [Cryptocurrency Endpoints](#cryptocurrency-endpoints)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **Full Range Endpoints:** Access Time Series, Technical Indicators, Forex, and Cryptocurrency data.
- **JSON Responses:** Designed to work with JSON only.
- **Dependency-Free HTTP Client:** Uses an inbuilt cURL-based HTTP client.
- **Modern PHP Practices:** Built for PHP 8.1+ with strict typing, PSR-4 autoloading, and PSR-12 coding standards.
- **Robust Error Handling:** Custom exceptions for handling API errors and invalid responses.
- **Comprehensive Testing:** Includes PHPUnit tests to ensure core functionalities remain stable.

Requirements
------------

[](#requirements)

- **PHP:** Version 8.1 or later.
- **cURL:** Enabled in PHP for HTTP requests.

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

[](#installation)

Install the package via Composer:

```
composer require sukhrobnurali/alphavantage-sdk
```

Usage
-----

[](#usage)

The following examples show how to use the different endpoints provided by the SDK.

### 1. Initialization

[](#1-initialization)

Begin by including Composer’s autoloader and initializing the client with your API key:

```
