PHPackages                             brtdv/twelvedata-php-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. brtdv/twelvedata-php-sdk

ActiveLibrary[API Development](/categories/api)

brtdv/twelvedata-php-sdk
========================

Unofficial SDK for the TwelveData.com API

v0.1.1(3y ago)134MITPHPPHP ^8.0

Since Jan 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/brtdv/twelvedata-php-sdk)[ Packagist](https://packagist.org/packages/brtdv/twelvedata-php-sdk)[ RSS](/packages/brtdv-twelvedata-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

TwelveData PHP Client
=====================

[](#twelvedata-php-client)

[![Latest Version](https://camo.githubusercontent.com/8b07e1c742d690bdb9cebd924457532258272eff70b4da8fc8fa2fed5ef6c7b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f62727464762f7477656c7665646174612d7068702d73646b3f6c6162656c3d6c617465737425323072656c65617365267374796c653d666c6174)](https://github.com/brtdv/twelvedata-php-sdk/releases)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)

Unofficial PHP SDK for the [TwelveData](https://twelvedata.com) stock API service. This SDK contains methods for easy interaction with the TwelveData API. This SDK is not yet feature complete. This is however the long term goal. Below are some examples and lists of what exactly is implemented at this moment. The implementation of this library is heavily based on the implementation of the [Mailgun SDK](https://github.com/mailgun/mailgun-php).

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

[](#installation)

To use this SDK, you'll need to add it to your project using [Composer](https://getcomposer.org/). This SDK is not hard coupled to Guzzle, Buzz, or any other PHP library that sends and receives HTTP messages, and uses [PSR-18](https://www.php-fig.org/psr/psr-18/) abstraction. You can choose your own [PSR-7](https://www.php-fig.org/psr/psr-7/) [implementation](https://packagist.org/providers/psr/http-message-implementation) and [PSR-7](https://www.php-fig.org/psr/psr-7/) [HTTP client](https://packagist.org/providers/psr/http-client-implementation) you want to use.

To get started quickly you can use `symfony/http-client` and `nyholm/psr7`, but feel free to replace these with the implementations of your choice.

```
composer require brtdv/twelvedata-php-sdk symfony/http-client nyholm/psr7
```

Usage
-----

[](#usage)

```
use Brtdv\TwelveData\TwelveData;

// Initialize a TwelveData API instance
$twelveDataApi = TwelveData::create('');

// Get a list off Stock Symbols
$response = $twelveDataApi->referenceData()->stocksList([
    'symbol'   => 'AAPL',
    'interval' => '1min'
]);

// Get the 1min candles for the AAPL symbol
$response = $twelveDataApi->coreData()->timeSeries([
    'symbol'   => 'AAPL',
    'interval' => '1min'
]);
```

You will find more detailed documentation in the [/docs](docs/index.md) folder. For more information about the TwelveData API, check out the [TwelveData API docs](https://twelvedata.com/docs).

Obtaining an API key
--------------------

[](#obtaining-an-api-key)

You can obtain an API key by [creating an account on TwelveData.com](https://twelvedata.com/register) and navigating to the ["API Keys" section of the admin console](https://twelvedata.com/account/api-keys).

What's included? What's missing?
--------------------------------

[](#whats-included-whats-missing)

As stated: this SDK implementation is not **yet** feature complete. A lot of API calls are missing at the moment, and additional real-time WebSocket API calls are also not included at this moment. Feel free to contribute any missing API calls through a PR.

Contribute
----------

[](#contribute)

Something missing from the SDK? Consider posting a PR with your changes. Feel free to contribute in any way.

Support and Feedback
--------------------

[](#support-and-feedback)

This SDK is provided AS IS and is not officially affiliated with TwelveData. For API support, [check out the TwelveData website](https://support.twelvedata.com/en/).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

1214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0d27d7db734ffaf5377cd5e388483271916928cb4782bcb85e3fe427180428b?d=identicon)[brtdv](/maintainers/brtdv)

---

Top Contributors

[![brtdv](https://avatars.githubusercontent.com/u/932365?v=4)](https://github.com/brtdv "brtdv (7 commits)")

---

Tags

apicryptoexchangecryptocurrencysymbolstocktwelvedata

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brtdv-twelvedata-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/brtdv-twelvedata-php-sdk/health.svg)](https://phpackages.com/packages/brtdv-twelvedata-php-sdk)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[mailgun/mailgun-php

The Mailgun SDK provides methods for all API functions.

1.1k28.9M163](/packages/mailgun-mailgun-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[deeplcom/deepl-php

Official DeepL API Client Library

2616.2M66](/packages/deeplcom-deepl-php)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)

PHPackages © 2026

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