{"id":36969872,"url":"https://github.com/tmarois/polygon-php-sdk","last_synced_at":"2026-01-13T21:40:49.421Z","repository":{"id":57070600,"uuid":"211385885","full_name":"tmarois/polygon-php-sdk","owner":"tmarois","description":"PHP SDK for the Polygon Market API","archived":true,"fork":false,"pushed_at":"2020-05-28T17:30:19.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T19:54:35.580Z","etag":null,"topics":["marketdata","polygon","polygon-php-sdk","polygonio","quote","sdk","stock"],"latest_commit_sha":null,"homepage":"https://polygon.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmarois.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-27T19:11:35.000Z","updated_at":"2023-01-08T17:18:19.000Z","dependencies_parsed_at":"2022-08-24T10:40:54.649Z","dependency_job_id":null,"html_url":"https://github.com/tmarois/polygon-php-sdk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tmarois/polygon-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmarois%2Fpolygon-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmarois%2Fpolygon-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmarois%2Fpolygon-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmarois%2Fpolygon-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmarois","download_url":"https://codeload.github.com/tmarois/polygon-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmarois%2Fpolygon-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["marketdata","polygon","polygon-php-sdk","polygonio","quote","sdk","stock"],"created_at":"2026-01-13T21:40:48.589Z","updated_at":"2026-01-13T21:40:49.417Z","avatar_url":"https://github.com/tmarois.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polygon Market PHP SDK\n\nThis package acts as the PHP SDK for the [Polygon RESTful API](https://polygon.io/docs/#getting-started).\n\n## Installation\n\nUse [Composer](http://getcomposer.org/) to install package.\n\nRun `composer require tmarois/polygon-php-sdk:^1.0`\n\n## Getting Started\n\nFirst you need to instantiate the `Polygon` object.\n\n```php\nuse Polygon\\Polygon;\n\n$polygon = new Polygon(\"YOUR_API_KEY\");\n```\n\n## Example Usage\n\n**[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.\n\nThis includes the last trade, last quote, previous day and current day of data.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetSnapshot('AAPL');\n```\n\n**[Stock Details](https://polygon.io/docs/#!/Reference/get_v1_meta_symbols_symbol_company)**: Get the details of the symbol company/entity.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetDetails('AAPL');\n```\n\n**[Stock News](https://polygon.io/docs/#!/Reference/get_v1_meta_symbols_symbol_company)**: Get the details of the symbol company/entity.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetNews('AAPL', 1, 20);\n```\n\n**[Last Trade](https://polygon.io/docs/#!/Stocks--Equities/get_v1_last_stocks_symbol)**: Get the last trade for a given stock.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetLastTrade('AAPL');\n```\n\n**[Last Quote](https://polygon.io/docs/#!/Stocks--Equities/get_v1_last_quote_stocks_symbol)**: Get the last quote for a given stock.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetLastQuote('AAPL');\n```\n\n**[Trade History](https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_trades_ticker_date)**: Get historic trades for a ticker.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetTradeHistory('AAPL','2019-09-25',$limit = 100, $timestampOffset = 0);\n```\n\n**[Quote History](https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_nbbo_ticker_date)**: Get historic NBBO quotes for a ticker.\n\n```php\n$response = $polygon-\u003estocks()-\u003egetQuoteHistory('AAPL','2019-09-25',$limit = 100, $timestampOffset = 0);\n```\n\nThere 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!\n\n## Contributions\n\nAnyone 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.\n\n## License\n\n**polygon-php-sdk** (This Repository) is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n\nThis 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmarois%2Fpolygon-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmarois%2Fpolygon-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmarois%2Fpolygon-php-sdk/lists"}