PHPackages                             tmarois/polygon-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. tmarois/polygon-php-sdk

AbandonedArchivedPackage[API Development](/categories/api)

tmarois/polygon-php-sdk
=======================

PHP SDK for the Polygon Market API

v1.3.1(6y ago)150[1 issues](https://github.com/tmarois/polygon-php-sdk/issues)PHPPHP &gt;=7

Since Oct 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tmarois/polygon-php-sdk)[ Packagist](https://packagist.org/packages/tmarois/polygon-php-sdk)[ Docs](https://github.com/tmarois/polygon-php-sdk)[ RSS](/packages/tmarois-polygon-php-sdk/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Polygon Market PHP SDK
======================

[](#polygon-market-php-sdk)

This package acts as the PHP SDK for the [Polygon RESTful API](https://polygon.io/docs/#getting-started).

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

[](#installation)

Use [Composer](http://getcomposer.org/) to install package.

Run `composer require tmarois/polygon-php-sdk:^1.0`

Getting Started
---------------

[](#getting-started)

First you need to instantiate the `Polygon` object.

```
use Polygon\Polygon;

$polygon = new Polygon("YOUR_API_KEY");
```

Example Usage
-------------

[](#example-usage)

**[Stock Snapshot](https://polygon.io/docs/#!/Stocks--Equities/get_v2_snapshot_locale_us_markets_stocks_tickers_ticker)**: Get the snapshot of a stock for the given day.

This includes the last trade, last quote, previous day and current day of data.

```
$response = $polygon->stocks()->getSnapshot('AAPL');
```

**[Stock Details](https://polygon.io/docs/#!/Reference/get_v1_meta_symbols_symbol_company)**: Get the details of the symbol company/entity.

```
$response = $polygon->stocks()->getDetails('AAPL');
```

**[Stock News](https://polygon.io/docs/#!/Reference/get_v1_meta_symbols_symbol_company)**: Get the details of the symbol company/entity.

```
$response = $polygon->stocks()->getNews('AAPL', 1, 20);
```

**[Last Trade](https://polygon.io/docs/#!/Stocks--Equities/get_v1_last_stocks_symbol)**: Get the last trade for a given stock.

```
$response = $polygon->stocks()->getLastTrade('AAPL');
```

**[Last Quote](https://polygon.io/docs/#!/Stocks--Equities/get_v1_last_quote_stocks_symbol)**: Get the last quote for a given stock.

```
$response = $polygon->stocks()->getLastQuote('AAPL');
```

**[Trade History](https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_trades_ticker_date)**: Get historic trades for a ticker.

```
$response = $polygon->stocks()->getTradeHistory('AAPL','2019-09-25',$limit = 100, $timestampOffset = 0);
```

**[Quote History](https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_nbbo_ticker_date)**: Get historic NBBO quotes for a ticker.

```
$response = $polygon->stocks()->getQuoteHistory('AAPL','2019-09-25',$limit = 100, $timestampOffset = 0);
```

There are more in the [Polygon Documentation](https://polygon.io/docs/#getting-started) than what is presented above, if you want to extend this, please send in a pull request or request features you'd like to see added. Thanks!

Contributions
-------------

[](#contributions)

Anyone can contribute to **polygon-php-sdk**. Please do so by posting issues when you've found something that is unexpected or sending a pull request for improvements.

License
-------

[](#license)

**polygon-php-sdk** (This Repository) is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

This SDK has no affiliation with Polygon.io, Inc and acts as an unofficial SDK designed to be a simple solution with using PHP applications. Use at your own risk. If you have any issues with the SDK please submit an issue or pull request.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~57 days

Total

5

Last Release

2224d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2489333?v=4)[Tim Marois](/maintainers/timothymarois)[@timothymarois](https://github.com/timothymarois)

---

Top Contributors

[![timothymarois](https://avatars.githubusercontent.com/u/2489333?v=4)](https://github.com/timothymarois "timothymarois (13 commits)")

---

Tags

marketdatapolygonpolygon-php-sdkpolygonioquotesdkstockapiPolygonmarketstocksstock-marketmarket api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tmarois-polygon-php-sdk/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[volcengine/volcengine-php-sdk

118.7k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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