https://github.com/adrifkat/cryptopanic
PHP unofficial client to CryptoPanic.com API
https://github.com/adrifkat/cryptopanic
cryptocurrency cryptocurrency-news cryptocurrency-news-portal cryptopanic news
Last synced: 3 months ago
JSON representation
PHP unofficial client to CryptoPanic.com API
- Host: GitHub
- URL: https://github.com/adrifkat/cryptopanic
- Owner: adrifkat
- License: mit
- Created: 2021-08-24T22:18:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T22:20:30.000Z (almost 5 years ago)
- Last Synced: 2025-12-14T07:42:23.027Z (7 months ago)
- Topics: cryptocurrency, cryptocurrency-news, cryptocurrency-news-portal, cryptopanic, news
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP unofficial client to CryptoPanic.com API
[CryptoPanic.com](https://cryptopanic.com) is a news aggregator platform indicating impact on price and market for traders and cryptocurrency enthusiasts. Users can vote to mark important, bullish or bearish price signals.
## Install
composer require adrifkat/cryptopanic
## Usage
> Get your from the [cryptopanic API page](https://cryptopanic.com/about/api/).
```php
$client = new \Adrifkat\Cryptopanic\Client('');
$postsResponse = $client->getPostsRequest()
->setCurrencies(['BTC', 'XRP'])
->setFilter('bearish')
->send();
$portfolioResponse = $client->send();
```
### Posts Request Methods
- `setFilter(string $value)`: You can use any of UI filters using filter. Available values: rising|hot|bullish|bearish|important|saved|lol
- `setCurrencies(array $currencies)`: Filter by currencies. Example: ['CURRENCY_CODE1', 'CURRENCY_CODE2']
- `setRegions(array $regions)`: Filter by region. Available regions: en (English), de (Deutsch), nl (Dutch), es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский). Example: ['en', 'nl']
- `setKind(string $value)`: Filter by kind. Available values: news|media
- `setFollowing(bool $following)`: Filter only "Following" feed - based on currencies you follow
- `setPublic(bool $public))`: Enable public API
# License
MIT