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.
Download tigusigalpa/coingecko-php
More information about tigusigalpa/coingecko-php
Files in tigusigalpa/coingecko-php
Package coingecko-php
Short Description A PHP/Laravel package for CoinGecko API integration with support for core REST endpoint groups, markets, contracts, and WebSocket subscription helpers.
License MIT
Informations about the package coingecko-php
CoinGecko PHP/Laravel API Client
🚀 Features
- ✅ Complete API Coverage - All CoinGecko API endpoints implemented
- 🔐 Pro API Support - Full support for CoinGecko Pro API with authentication
- 🎯 Laravel Integration - Service provider, facade, and configuration out of the box
- 💎 Modern PHP - Built with PHP 8.0+ features and best practices
- 🛡️ Type Safety - Fully typed parameters and return values
- 📦 Zero Configuration - Works immediately with sensible defaults
- 🔄 Flexible - Use as standalone PHP library or Laravel package
- 🎨 Clean API - Intuitive, chainable methods for better developer experience
- ⚡ Performance - Efficient HTTP client with connection pooling
- 📚 Well Documented - Comprehensive examples and API reference
📋 Requirements
- PHP 8.0 or higher
- Laravel 9.x, 10.x, or 11.x (for Laravel integration)
- Guzzle HTTP client 7.x
📦 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=trueif 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 - Quick price lookups and supported currencies
- Coins API - Comprehensive coin data, markets, and historical charts
- Contract API - Token data by contract address
- Asset Platforms API - Asset platforms and token lists
- Categories API - Coin categories with market data
- Exchanges API - Exchange data, tickers, and volume charts
- Derivatives API - Derivatives tickers and exchanges
- Entities API - Crypto treasury holdings and transactions
- NFTs API - NFT collections and market data
- Exchange Rates API - BTC-to-currency exchange rates
- Search API - Search queries and trending data
- Global API - Global crypto and DeFi market data
- WebSocket API - Real-time WebSocket subscriptions
- Ping API - Server status and API usage
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:
- Free API: 10-50 calls/minute
- Pro API: Higher limits based on your plan
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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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
- Igor Sazonov
- CoinGecko for providing the API
- All contributors
🔗 Links
- Package : https://packagist.org/packages/tigusigalpa/coingecko-php
- Repository: https://github.com/tigusigalpa/coingecko-php
- CoinGecko API Documentation: https://docs.coingecko.com
- CoinGecko Website: https://www.coingecko.com
All versions of coingecko-php with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0