musheabdulhakim/coingecko
最新稳定版本:v1.0.3
Composer 安装命令:
composer require musheabdulhakim/coingecko
包简介
CoinGecko API client for PHP and Laravel Applications.
README 文档
README
This package provides a wonderful PHP API client that allows you to interact with CoinGecko Api
This SDK is a PHP & Laravel Package, (Designed to help working with coingecko api easier and faster).
Requirement
Installation
composer require musheabdulhakim/coingecko
Basic usage
$coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key'); //or $coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key','https://api.coingecko.com/api', 'v3');
Example
$coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key'); $ping = $coingecko->ping(); $pingTest = $ping->ping(); //or $coingecko->pingServer();
Configuration
Update api version, base url and api key
'COINGECKO_API_VERSION' => 'v3', 'COINGECKO_BASE_URI' => 'https://api.coingecko.com/api', 'COINGECKO_API_KEY' => 'xxxxxxxxxxxxxxxxxxxxxx',
Ping
ping
Check API server status
$ping = $coingecko->ping();
License
musheabdulhakim/coingecko is released under the MIT License. See the bundled LICENSE for details.
Contribution
🧹 Keep a modern codebase with php-cs-fixer:
composer lint
🚀 Run the entire test suite:
composer test
Report all your issues Here
All your pull requests are welcome :).
统计信息
- 总下载量: 82
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-11