Download the PHP package parsidev/coingecko-api without Composer

On this page you can find all versions of the php package parsidev/coingecko-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package coingecko-api

PHP API client for coingecko.com

Build Status Scrutinizer Code Quality Test Coverage Maintainability License: MIT

A simple API client, written with PHP for coingecko.com.

CoinGecko provides a fundamental analysis of the crypto market. In addition to tracking price, volume and market capitalization, CoinGecko tracks community growth, open-source code development, major events and on-chain metrics.

For additional information about API visit coingecko.com/api

CoinGecko API Terms of Service

Requirements

Installation

The preferred way to install this extension is through composer.

Either run

or add

Basic usage

Example

You can get last response (ResponseInterface::class) uses getLastResponse method:

Available methods

Ping

ping

Check API server status

Simple

getPrice

Get the current price of any cryptocurrencies in any other supported currencies that you need.

getTokenPrice

Get current price of tokens (using contract addresses) for a given platform in any other currency that you need.

getSupportedVsCurrencies

Get list of supported_vs_currencies.

Coins

getList

List all supported coins id, name and symbol (no pagination required)

getMarkets

List all supported coins price, market cap, volume, and market related data

getCoin

Get current data (name, price, market, ... including exchange tickers) for a coin

getTickers

Get coin tickers (paginated to 100 items)

getHistory

Get historical data (name, price, market, stats) at a given date for a coin

getMarketChart

Get historical market data include price, market cap, and 24h volume (granularity auto)

getMarketChartRange

Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto)

getMarketChartRange [BETA]

Get status updates for a given coin

Contract

getContract

Get coin info from contract address

getMarketChart

Get historical market data include price, market cap, and 24h volume (granularity auto) from a contract address

getMarketChartRange

Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto) from a contract address

Exchange [BETA]

getExchanges

List all exchanges

getList

List all supported markets id and name (no pagination required)

getExchange

Get exchange volume in BTC and top 100 tickers only

getTickers

Get exchange tickers (paginated)

getStatusUpdates

Get status updates for a given exchange (beta)

getVolumeChart

Get volume_chart data for a given exchange (beta)

Finance [BETA]

getPlatforms

List all finance platforms

getProducts

List all finance products

Indexes [BETA]

getIndexes

List all market indexes

getIndex

Get market index by id

getList

List market indexes id and name

Derivatives [BETA]

getDerivatives

List all derivative tickers

getExchanges

List all derivative exchanges

getExchange

Show derivative exchange data

getExchangeList

List all derivative exchanges name and identifier

Status updates [BETA]

getStatusUpdates

List all status_updates with data (description, category, created_at, user, user_title and pin)

Events [BETA]

getEvents

Get events, paginated by 100

getCountries

Get list of event countries

getTypes

Get list of events types

Exchange rates [BETA]

getExchangeRates

Get BTC-to-Currency exchange rates

Global [BETA]

getGlobal

Get cryptocurrency global data

License

codenix-sv/coingecko-api is released under the MIT License. See the bundled LICENSE for details.


All versions of coingecko-api with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
php Version ^8.0
guzzlehttp/guzzle Version ^7.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package parsidev/coingecko-api contains the following files

Loading the files please wait ....