PHPackages                             necmicolak/yahoo-finance - 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. necmicolak/yahoo-finance

ActiveLibrary

necmicolak/yahoo-finance
========================

Yahoo Finance Unofficial API

1.0.0(4y ago)1240MITPHPPHP &gt;=7.2

Since May 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/necmicolak/YahooFinancePHP)[ Packagist](https://packagist.org/packages/necmicolak/yahoo-finance)[ Docs](https://github.com/necmicolak/YahooFinancePHP)[ RSS](/packages/necmicolak-yahoo-finance/feed)WikiDiscussions main Synced 1mo ago

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

YahooFinancePHP
===============

[](#yahoofinancephp)

Yahoo finance unofficial API PHP package

Installation
============

[](#installation)

```
composer require necmicolak/yahoo-finance

```

Usage
=====

[](#usage)

Search Currency, stocks etc.
============================

[](#search-currency-stocks-etc)

```
use Necmicolak\YahooFinance\SearchAsset;

SearchAsset::search('APP', 6);

// Returns an array of exchange, shortname, quoteType, symbol etc.

```

Fetch meta values
=================

[](#fetch-meta-values)

```
use Necmicolak\YahooFinance\FinanceAsset;
$asset = new FinanceAsset('BTC-USD');
$asset->getMeta();

```

- Example Return

```
[
     "currency" => "USD",
     "symbol" => "BTC-USD",
     "exchangeName" => "CCC",
     "instrumentType" => "CRYPTOCURRENCY",
     "firstTradeDate" => 1410912000,
     "regularMarketTime" => 1651964220,
     "gmtoffset" => 0,
     "timezone" => "UTC",
     "exchangeTimezoneName" => "UTC",
     "regularMarketPrice" => 34982.34,
     "chartPreviousClose" => 36033.406,
     "previousClose" => 36033.406,
     "scale" => 3,
     "priceHint" => 2,
     "currentTradingPeriod" => [
       "pre" => [
         "timezone" => "UTC",
         "end" => 1651881600,
         "start" => 1651881600,
         "gmtoffset" => 0,
       ],
       "regular" => [
         "timezone" => "UTC",
         "end" => 1651967940,
         "start" => 1651881600,
         "gmtoffset" => 0,
       ],
       "post" => [
         "timezone" => "UTC",
         "end" => 1651967940,
         "start" => 1651967940,
         "gmtoffset" => 0,
       ],
     ],
     "tradingPeriods" => [
       [
         [
           "timezone" => "UTC",
           "end" => 1651967940,
           "start" => 1651881600,
           "gmtoffset" => 0,
         ],
       ],
     ],
     "dataGranularity" => "1m",
     "range" => "1d",
     "validRanges" => [
       "1d",
       "5d",
       "1mo",
       "3mo",
       "6mo",
       "1y",
       "2y",
       "5y",
       "10y",
       "ytd",
       "max",
     ],
];

```

Fetch chart
===========

[](#fetch-chart)

```
use Necmicolak\YahooFinance\FinanceAsset;
$asset = new FinanceAsset('BTC-USD');
$asset->getChart();

```

- Example return

```
[
  "timestamp" => [] // timestamp values
  "values" => [] // asset values same count timestamp
]

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1466d ago

### Community

Maintainers

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

---

Top Contributors

[![necmicolak](https://avatars.githubusercontent.com/u/80575445?v=4)](https://github.com/necmicolak "necmicolak (9 commits)")

---

Tags

currency-apiyahooyahoo-financeyahoo-finance-api

### Embed Badge

![Health badge](/badges/necmicolak-yahoo-finance/health.svg)

```
[![Health](https://phpackages.com/badges/necmicolak-yahoo-finance/health.svg)](https://phpackages.com/packages/necmicolak-yahoo-finance)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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