Download the PHP package cointokio/coingecko-api-client without Composer
On this page you can find all versions of the php package cointokio/coingecko-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cointokio/coingecko-api-client
More information about cointokio/coingecko-api-client
Files in cointokio/coingecko-api-client
Package coingecko-api-client
Short Description Fetch data from the CoinGecko API, intended for use in WordPress plugins or themes.
License GPL-2.0-or-later
Homepage https://github.com/cointokio/coingecko-api-client
Informations about the package coingecko-api-client
CoinGecko API Client for WordPress
A PHP client for fetching data from the CoinGecko API intended to be used in WordPress plugins or themes. Being a good WordPress citizen, this client uses the WordPress core HTTP API to fetch its data.
Installation
This package is available on packagist.org can be added as a dependency to your project via Composer.
composer require cointokio/coingecko-api-client
Usage
Include the main class-client.php
file and create an instance of the Client
class and use its methods to fetch data from the CoinGecko API. Each method represents a separate API endpoint and will either return a list of response data or a WP_Error object.
The following example uses the $client->coins()->get_markets()
method to fetch data from CoinGecko's /coins/markets
endpoint:
Coding Standards
This project aims to adhere to the VIP Coding Standards.