PHPackages                             marekskopal/twelvedata - 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. marekskopal/twelvedata

ActiveLibrary[API Development](/categories/api)

marekskopal/twelvedata
======================

TwelveData API client library

v0.9.8(2mo ago)41.5k↓11.1%2MITPHPPHP &gt;=8.3

Since Feb 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/marekskopal/twelvedata)[ Packagist](https://packagist.org/packages/marekskopal/twelvedata)[ Docs](https://www.fingather.com)[ RSS](/packages/marekskopal-twelvedata/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (26)Versions (25)Used By (0)

Twelve Data API client library for PHP
======================================

[](#twelve-data-api-client-library-for-php)

Unofficial PHP API client library for the [Twelve Data](https://twelvedata.com) API service.

Install
-------

[](#install)

```
composer require marekskopal/twelvedata
```

Usage
-----

[](#usage)

```
use MarekSkopal\TwelveData\TwelveData;
use MarekSkopal\TwelveData\Enum\IntervalEnum;

// Create TwelveData instance
$twelveData = new TwelveData('');

// Get the one minute time series for the AAPL symbol. Response is in form of strict typed DTO (Data Transfer Object)
$response = $twelveData->coreData->timeSeries(
    symbol: 'AAPL',
    interval: IntervalEnum::OneMinute,
);

// Alternatively, you can use the low level interface
$response = $twelveData->get(
    '/time_series',
    [
        'symbol' => 'AAPL',
        'interval' => '1min',
    ],
);
```

Covered endpoints
-----------------

[](#covered-endpoints)

More endpoints will be covered in future versions.

### Core Data

[](#core-data)

- Time Series ✅
- Time Series Cross ✅
- Quote ✅
- Latest Price ✅
- Edd of Day Price ✅
- Market Movers ✅

### Reference Data

[](#reference-data)

#### Asset Catalogs

[](#asset-catalogs)

- Stocks ✅
- Forex Pairs ✅
- Cryptocurrency Pairs ✅
- ETFs ✅
- Funds ✅
- Commodities ✅
- Fixed Income ✅
- Indices List ✅

#### Discovery

[](#discovery)

- Symbol Search ✅
- Cross listings ✅
- Earliest Timestamp ✅

#### Markets

[](#markets)

- Exchanges ✅
- Exchange schedule ✅
- Cryptocurrency Exchanges ✅
- Market State ✅

#### Supporting Metadata

[](#supporting-metadata)

- Instrument Type ✅
- Countries ✅
- Technical Indicators ✅

### Fundamentals

[](#fundamentals)

- Logo ✅
- Profile ✅
- Dividends ✅
- Dividends Calendar ✅
- Splits ✅
- Splits Calendar ✅
- Earnings ✅
- Earnings Calendar ✅
- IPO Calendar ✅
- Statistics ✅
- Income Statement ✅
- Income Statement Consolidated ✅
- Balance Sheet ✅
- Balance Sheet Consolidated ✅
- Cash Flow ✅
- Cash Flow Consolidated ✅
- Key Executives ✅
- Options Expiration ✅
- Options Chain ✅
- Market Capitalization ✅
- Last changes ✅

### Currencies

[](#currencies)

- Exchange Rate ✅
- Currency Conversion ✅

### ETFs ❌

[](#etfs-)

### Mutual Funds ❌

[](#mutual-funds-)

### Technical Indicators

[](#technical-indicators)

#### Overlap studies

[](#overlap-studies)

- Bollinger bands ✅
- High demand ✅
- Double exponential moving average ✅
- Exponential moving average ✅
- High demand ✅
- Hilbert transform instantaneous trendline ✅
- Ichimoku cloud ✅
- Kaufman adaptive moving average ✅
- Keltner channel ✅
- Moving average ✅
- MESA adaptive moving average ✅
- McGinley dynamic indicator ✅
- Midpoint ✅
- Midprice ✅
- Pivot points high low ✅
- Parabolic stop and reverse ✅
- Parabolic stop and reverse extended ✅
- Simple moving average ✅
- High demand ✅
- Triple exponential moving average T3MA ✅
- Triple exponential moving average TEMA ✅
- Triangular moving average ✅
- Volume weighted average price ✅
- Weighted moving average ✅

#### Momentum indicators

[](#momentum-indicators)

- Average directional index ✅
- High demand ✅
- Average directional movement index rating ✅
- Absolute price oscillator ✅
- Aroon indicator ✅
- Aroon oscillator ✅
- Balance of power ✅
- Commodity channel index ✅
- Chande momentum oscillator ✅
- Coppock curve ✅
- Connors relative strength index ✅
- Detrended price oscillator ✅
- Directional movement index ✅
- Know sure thing ✅
- Moving average convergence divergence ✅
- High demand ✅
- Moving average convergence divergence slope ✅
- Moving average convergence divergence extension ✅
- Money flow index ✅
- Minus directional indicator ✅
- Minus directional movement ✅
- Momentum ✅
- Percent B ✅
- High demand ✅
- Plus directional indicator ✅
- Plus directional movement ✅
- Percentage price oscillator ✅
- Rate of change ✅
- Rate of change percentage ✅
- Rate of change ratio ✅
- Rate of change ratio 100 ✅
- Relative strength index ✅
- High demand ✅
- Stochastic oscillator ✅
- High demand ✅
- Stochastic fast ✅
- Stochastic relative strength index ✅
- Ultimate oscillator endpoint ✅
- Williams %R ✅

#### Volume indicators

[](#volume-indicators)

- Accumulation/distribution ✅
- Accumulation/distribution oscillator ✅
- On balance volume ✅
- Relative volume ✅

#### Volatility indicators

[](#volatility-indicators)

- Average true range ✅
- Normalized average true range ✅
- Supertrend ✅
- Supertrend Heikin Ashi candles ✅
- True range ✅

#### Price transform

[](#price-transform)

- Addition ✅
- Average ✅
- Average price ✅
- Ceiling ✅
- Division ✅
- Exponential ✅
- Floor ✅
- Heikinashi candles ✅
- High, low, close average ✅
- Natural logarithm ✅
- Base-10 logarithm ✅
- Median price ✅
- Multiplication ✅
- Square root ✅
- Subtraction ✅
- Summation ✅
- Typical price ✅
- Weighted close price ✅

#### Cycle indicators

[](#cycle-indicators)

- Hilbert transform dominant cycle period ✅
- Hilbert transform dominant cycle phase ✅
- Hilbert transform phasor components ✅
- Hilbert transform sine wave ✅
- Hilbert transform trend vs cycle mode ✅

#### Statistic functions

[](#statistic-functions)

- Beta indicator ✅
- Correlation ✅
- Linear regression ✅
- Linear regression angle ✅
- Linear regression intercept ✅
- Linear regression slope ✅
- Maximum ✅
- Maximum Index ✅
- Minimum ✅
- Minimum index ✅
- Minimum and maximum ✅
- Minimum and maximum index ✅
- Standard deviation ✅
- Time series forecast ✅
- Variance ✅

### Analysis

[](#analysis)

- Earnings Estimate ✅
- Revenue Estimate ✅
- EPS Trend ✅
- EPS Revisions ✅
- Growth Estimates ✅
- Recommendations ✅
- Price Target ✅
- Analyst Ratings Snapshot ✅
- Analyst Ratings US Equities ✅

### Regulatory

[](#regulatory)

- EDGAR Fillings ✅
- Insider Transactions ✅
- Institutional Holders ✅
- Fund Holders ✅
- Direct Holders ✅
- Tax Information ✅
- Sanctioned Entities ✅

### Advanced

[](#advanced)

- Complex Data ❌
- Usage ✅

### WebSocket ❌

[](#websocket-)

Notice
------

[](#notice)

This is NOT an official Twelve Data library, and the authors of this library are not affiliated with Twelve Data in any way, shape or form. Twelve Data APIs and data are Copyright © 2025 Twelve Data Pte. Ltd.

Contributing
------------

[](#contributing)

If you want to contribute, feel free to submit a pull request.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% 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 ~33 days

Recently: every ~26 days

Total

24

Last Release

61d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eeb4a0e8bc7e2ce26f00193dac3973909911a18079b18956b03af66b901421a?d=identicon)[marekskopal](/maintainers/marekskopal)

---

Top Contributors

[![marekskopal](https://avatars.githubusercontent.com/u/33967656?v=4)](https://github.com/marekskopal "marekskopal (164 commits)")[![SanderHagen](https://avatars.githubusercontent.com/u/28562438?v=4)](https://github.com/SanderHagen "SanderHagen (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marekskopal-twelvedata/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[trycourier/courier

Courier PHP SDK

16643.9k](/packages/trycourier-courier)

PHPackages © 2026

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