{"id":37439199,"url":"https://github.com/cryptocontrol/php-api","last_synced_at":"2026-01-16T06:43:23.315Z","repository":{"id":48677662,"uuid":"135041607","full_name":"cryptocontrol/php-api","owner":"cryptocontrol","description":"Official PHP client for the CryptoControl Crypto News API","archived":false,"fork":false,"pushed_at":"2021-07-14T15:58:38.000Z","size":14,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T15:47:13.643Z","etag":null,"topics":["api","bitcoin","blockchain","composer","cryptocurrency","ethereum","news","php"],"latest_commit_sha":null,"homepage":"https://cryptocontrol.io/apis","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptocontrol.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-05-27T11:50:50.000Z","updated_at":"2021-07-26T17:33:10.000Z","dependencies_parsed_at":"2022-08-29T04:31:05.262Z","dependency_job_id":null,"html_url":"https://github.com/cryptocontrol/php-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cryptocontrol/php-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocontrol%2Fphp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocontrol%2Fphp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocontrol%2Fphp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocontrol%2Fphp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptocontrol","download_url":"https://codeload.github.com/cryptocontrol/php-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptocontrol%2Fphp-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["api","bitcoin","blockchain","composer","cryptocurrency","ethereum","news","php"],"created_at":"2026-01-16T06:43:22.674Z","updated_at":"2026-01-16T06:43:23.307Z","avatar_url":"https://github.com/cryptocontrol.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"CryptoControl - PHP Crypto News API\n=========================\n\nOfficial PHP client for the [CryptoControl.io](https://cryptocontrol.io) API. The CryptoControl PHP client lets developers access rich formatted articles from cryptonews sources from all around the world.\n\n## Installation\n```sh\ncomposer require cryptocontrol/crypto-news-api\n```\n\n## Usage\nFirst make sure that you've recieved an API key by visiting [https://cryptocontrol.io/apis](https://cryptocontrol.io/apis). With the API key you can write the following code.\n\n\n```php\n\n$api = new CryptoControl\\CryptoNewsApi(\"API_KEY_HERE\");\n\n# Enable the sentiment datapoints\n$api-\u003eenableSentiment();\n\n# get top news\nprint_r($api-\u003egetTopNews());\n\n# get latest russian news\nprint_r($api-\u003egetLatestNews(\"ru\"));\n\n# get top bitcoin news\nprint_r($api-\u003egetTopNewsByCoin(\"bitcoin\"));\n\n# get top EOS tweets\nprint_r($api-\u003egetTopTweetsByCoin(\"eos\"));\n\n# get top Ripple reddit posts\nprint_r($api-\u003egetLatestRedditPostsByCoin(\"ripple\"));\n\n# get reddit/tweets/articles in a single combined feed for NEO\nprint_r($api-\u003egetTopFeedByCoin(\"neo\"));\n\n# get latest reddit/tweets/articles (seperated) for Litecoin\nprint_r($api-\u003egetLatestItemsByCoin(\"litecoin\"));\n\n# get details (subreddits, twitter handles, description, links) for ethereum\nprint_r($api-\u003egetCoinDetails(\"ethereum\"));\n\n```\n\n## Available Functions\n\n- **getTopNews(lang?: enum)** Get the top news articles.\n- **getLatestNews(lang?: enum)** Get the latest news articles.\n- **getTopNewsByCategory(lang?: enum)** Get news articles grouped by category.\n- **getTopNewsByCoin(coin: String, lang?: enum)** Get the top news articles for a specific coin from the CryptoControl API.\n- **getLatestNewsByCoin(coin: String, lang?: enum)** Get the latest news articles for a specific coin.\n- **getTopNewsByCoinCategory(coin: String, lang?: enum)** Get news articles grouped by category for a specific coin.\n- **getTopRedditPostsByCoin(coin: String, lang?: enum)** Get top reddit posts for a particular coin\n- **getLatestRedditPostsByCoin(coin: String, lang?: enum)** Get latest reddit posts for a particular coin\n- **getTopTweetsByCoin(coin: String, lang?: enum)** Get top tweets for a particular coin\n- **getLatestTweetsByCoin(coin: String, lang?: enum)** Get latest tweets for a particular coin\n- **getTopFeedByCoin(coin: String, lang?: enum)** Get a combined feed (reddit/tweets/articles) for a particular coin (sorted by time)\n- **getLatestFeedByCoin(coin: String, lang?: enum)** Get a combined feed (reddit/tweets/articles) for a particular coin (sorted by relevance)\n- **getTopItemsByCoin(coin: String, lang?: enum)** Get reddit/tweets/articles (seperated) for a particular coin (sorted by time)\n- **getLatestItemsByCoin(coin: String, lang?: enum)** Get reddit/tweets/articles (seperated) for a particular coin (sorted by relevance)\n- **getCoinDetails(coin: String)** Get all details about a particular coin (links, description, subreddits, twitter etc..)\n- **enableSentiment()** Get the sentiment datapoints\n\n\n`lang` allows developers to choose which language they'd like to get the feed. Currently the CryptoControl API supports the following languages:\n- English (`en` default)\n- Chinese/Mandarin (`cn`)\n- German (`de`)\n- Italian (`it`)\n- Japanese (`jp`)\n- Korean (`ko`)\n- Portuguese (`po`)\n- Russian (`ru`)\n- Spanish (`es`)\n\nThe coin slugs are the coin id's used from the CoinMarketCap api. You can see the full list of coins here: [https://api.coinmarketcap.com/v1/ticker/?limit=2000](https://api.coinmarketcap.com/v1/ticker/?limit=2000)\n\n`enableSentiment()` will tell CrpytoControl to return articles/reddit/twitter with sentiment datapoints as well (ie. how much +ve/-ve an article is). This feature is for [CryptoControl premium users](https://cryptocontrol.io/en/about/premium) only.\n\n\n```javascript\n[{\n    \"hotness\": 70862.60323026273,\n    \"activityHotness\": 4.601980262729618,\n    \"primaryCategory\": \"General\",\n    \"words\": 1444,\n    \"similarArticles\": [\n        {\n            \"_id\": \"5b363b525b113200191a1d5f\",\n            \"publishedAt\": \"2018-06-29T13:42:44.000Z\",\n            \"title\": \"Op-Ed: Challenge of Mining Centralization Unveils Bitcoin’s Elegant Design\",\n            \"url\": \"https://cryptocontrol.io/r/api/article/5b363b525b113200191a1d5f?ref=5ac11440ec0af7be35528459\",\n            \"source\": {\n                \"_id\": \"59d8c361ef8bf95cc2bfb66f\",\n                \"name\": \"Bitcoin Magazine\",\n                \"url\": \"https://bitcoinmagazine.com/\"\n            },\n            \"sourceDomain\": \"bitcoinmagazine.com\",\n            \"thumbnail\": null\n        },\n        {\n            \"_id\": \"5b3865405c5681000f2f7407\",\n            \"publishedAt\": \"2018-06-30T14:58:00.000Z\",\n            \"title\": \"Arbitration on a Governed Blockchain: EOS’ Crisis of Dispute Resolution\",\n            \"url\": \"https://cryptocontrol.io/r/api/article/5b3865405c5681000f2f7407?ref=5ac11440ec0af7be35528459\",\n            \"source\": {\n                \"_id\": \"59d70be3ef8bf95cc2aa2b4f\",\n                \"name\": \"CoinTelegraph\",\n                \"url\": \"https://cointelegraph.com/\"\n            },\n            \"sourceDomain\": \"cointelegraph.com\",\n            \"thumbnail\": null\n        }\n    ],\n    \"coins\": [\n        {\n            \"_id\": \"59cb59f9b0836b0a63aebc7c\",\n            \"name\": \"Ethereum\",\n            \"tradingSymbol\": \"eth\",\n            \"slug\": \"ethereum\"\n        },\n        {\n            \"_id\": \"59d21e9b83a0523906a45dc5\",\n            \"name\": \"EOS\",\n            \"slug\": \"eos\",\n            \"tradingSymbol\": \"eos\"\n        }\n    ],\n    \"_id\": \"5b3a2e1b104844000fd64e28\",\n    \"description\": \"The EOS governance disaster offers a strong reminder of how entrenched human mistrust can be difficult to overcome.\",\n    \"publishedAt\": \"2018-07-02T12:00:27.000Z\",\n    \"title\": \"It's Too Soon for On-Chain Governance - CoinDesk\",\n    \"url\": \"https://cryptocontrol.io/r/api/article/5b3a2e1b104844000fd64e28?ref=5ac11440ec0af7be35528459\",\n    \"source\": {\n        \"_id\": \"59ce11393a44cf289a9a71f5\",\n        \"name\": \"CoinDesk\",\n        \"url\": \"http://coindesk.com\"\n    },\n    \"thumbnail\": \"https://cryptocontrol.io/r/thumbnail/5b3a2e1b104844000fd64e28?ref=5ac11440ec0af7be35528459\",\n    \"sourceName\": \"CoinDesk\",\n    \"sourceUrl\": \"http://coindesk.com\",\n    \"sourceDomain\": \"coindesk.com\",\n    \"originalImageUrl\": \"https://media.coindesk.com/uploads/2018/06/shutterstock_153840266-e1530230263310.jpg\"\n}]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocontrol%2Fphp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptocontrol%2Fphp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptocontrol%2Fphp-api/lists"}