https://github.com/coinpaprika/coinpaprika-api-php-client
This library provides convenient way to use Coinpaprika.com API in PHP.
https://github.com/coinpaprika/coinpaprika-api-php-client
bitcoin blockchain coinpaprika crypto cryptocurrency market-capitalization php
Last synced: 10 months ago
JSON representation
This library provides convenient way to use Coinpaprika.com API in PHP.
- Host: GitHub
- URL: https://github.com/coinpaprika/coinpaprika-api-php-client
- Owner: coinpaprika
- License: mit
- Created: 2018-09-25T13:28:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T21:22:09.000Z (about 3 years ago)
- Last Synced: 2025-08-28T19:02:09.462Z (10 months ago)
- Topics: bitcoin, blockchain, coinpaprika, crypto, cryptocurrency, market-capitalization, php
- Language: PHP
- Homepage: https://api.coinpaprika.com/
- Size: 63.5 KB
- Stars: 24
- Watchers: 12
- Forks: 11
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coinpaprika API PHP Client
[](https://coinpaprika.com)
[](https://coinpaprika.com)
[](https://api.coinpaprika.com/)
[](https://packagist.org/packages/coinpaprika/coinpaprika-api-php-client)
[](https://scrutinizer-ci.com/g/coinpaprika/coinpaprika-api-php-client/build-status/master)
[](LICENSE.md)
[](https://scrutinizer-ci.com/g/coinpaprika/coinpaprika-api-php-client)
[](https://scrutinizer-ci.com/g/coinpaprika/coinpaprika-api-php-client/?branch=master)
[](https://packagist.org/packages/coinpaprika/coinpaprika-api-php-client)
## Usage
This library provides convenient way to use [coinpaprika.com API](https://api.coinpaprika.com/) in PHP.
[Coinpaprika](https://coinpaprika.com) delivers full market data to the world of crypto: coin prices, volumes, market caps, ATHs, return rates and more.
## Requirements
* PHP >= 7.1
* (optional) PHPUnit to run tests.
## Install
Via Composer:
```bash
$ composer require coinpaprika/coinpaprika-api-php-client
```
## Getting started
```php
getCoins();
```
From `$client` object, you can access all the endpoints.
## Cache usage
For deserialization process it is advised to initiate the `$client` with `$cacheDir` argument.
```php
getTickers();
```
## Paid API
To use paid version set the api key
```php
setApiKey('PROVIDED_API_KEY');
$coins = $client->getCoins();
```
## Examples
Check out the [`./examples`](./examples) directory.
## License
CoinpaprikaAPI is available under the MIT license. See the [LICENSE file](./LICENSE.md) for more info.