Download the PHP package tigusigalpa/coingecko-php without Composer

On this page you can find all versions of the php package tigusigalpa/coingecko-php. 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-php

CoinGecko PHP/Laravel API Client

![CoinGecko PHP SDK](https://github.com/user-attachments/assets/bab9bea7-a93c-445f-8db3-862576b96977) [![Latest Version on Packagist](https://img.shields.io/packagist/v/tigusigalpa/coingecko-php.svg?style=flat-square)](https://packagist.org/packages/tigusigalpa/coingecko-php) [![License](https://img.shields.io/packagist/l/tigusigalpa/coingecko-php.svg?style=flat-square)](https://packagist.org/packages/tigusigalpa/coingecko-php) A comprehensive, modern PHP/Laravel package for seamless integration with the [CoinGecko API](https://www.coingecko.com/en/api). Get real-time cryptocurrency prices, market data, historical charts, and more with an elegant, developer-friendly interface. [Features](#features) • [Installation](#installation) • [Quick Start](#quick-start) • [Documentation](#documentation) • [Examples](#examples)

🚀 Features

📋 Requirements

📦 Installation

Install the package via Composer:

Laravel Setup

The package will automatically register its service provider. Publish the configuration file:

Add your CoinGecko API credentials to your .env file:

Note: API key is optional for free tier. Set COINGECKO_IS_PRO=true if you have a Pro API subscription.

🎯 Quick Start

Standalone PHP Usage

Laravel Usage

📖 Documentation

API Endpoints

The package is organized into logical API groups:


Simple API

Get cryptocurrency prices and basic market data quickly.

Get Coin Prices

Get Token Prices by Contract Address

Get Supported Currencies


Coins API

Access detailed coin information, market data, and historical charts.

List All Coins

Top Gainers & Losers

Recently Added Coins

Coins Market Data

Detailed Coin Data

Coin Tickers

Historical Data

Market Chart Data

OHLC Chart Data

Supply Charts


Contract API

Get token data using contract addresses on various blockchain platforms.

Get Token Data by Contract Address

Token Market Chart by Contract


Asset Platforms API

Get information about blockchain platforms and their tokens.

Get Asset Platforms List

Get Token Lists by Platform


Categories API

Access cryptocurrency categories and their market data.

Get Categories List (ID Map)

Get Categories with Market Data


Exchanges API

Access exchange data, tickers, and volume information.

Get Exchanges List with Data

Get Exchanges List (ID Map)

Get Exchange Data by ID

Get Exchange Tickers

Get Exchange Volume Chart


Derivatives API

Access derivatives market data and exchanges.

Get Derivatives Tickers

Get Derivatives Exchanges

Get Derivatives Exchange by ID

Get Derivatives Exchanges List (ID Map)


Entities API

Access crypto treasury holdings and transaction history.

Get Entities List (ID Map)

Get Crypto Treasury Holdings by Coin ID

Get Crypto Treasury Holdings by Entity ID

Get Treasury Historical Chart

Get Treasury Transaction History


NFTs API

Access NFT collections and market data.

Get NFTs List (ID Map)

Get NFT Collection Data by ID

Get NFT Collection by Contract Address

Get NFTs List with Market Data

Get NFT Collection Market Chart

Get NFT Collection Tickers


Exchange Rates API

Get BTC-to-currency exchange rates.

Get BTC Exchange Rates


Search API

Search for coins, exchanges, and categories, and get trending data.

Search Queries

Get Trending Search List


Global API

Access global cryptocurrency and DeFi market data.

Get Crypto Global Market Data

Get Global DeFi Market Data

Get Global Market Cap Chart


WebSocket API

Real-time WebSocket subscriptions for live data (Beta).

Get WebSocket URL

Create Simple Price Subscription

Create Onchain Token Price Subscription

Create Onchain Trade Subscription

Create Onchain OHLCV Subscription

Unsubscribe and Ping


Ping API

Check API server status and monitor your API usage.

Check Server Status

Check API Usage (Pro API only)


💡 Examples

Real-World Use Cases

Portfolio Tracker

Price Alert System

Market Analysis Dashboard

Historical Price Comparison

DeFi Token Tracker


🔧 Advanced Configuration

Custom HTTP Client Options

Error Handling

Rate Limiting

CoinGecko API has rate limits:

The package doesn't implement automatic rate limiting, so you should implement your own caching strategy:


🧪 Testing

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

🔒 Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

📄 License

The MIT License (MIT). Please see License File for more information.

🙏 Credits

🔗 Links


**[⬆ back to top](#coingecko-phplaravel-api-client)**

All versions of coingecko-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
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 tigusigalpa/coingecko-php contains the following files

Loading the files please wait ...