Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahradelahi/coinmarketcap
A PHP library for the CoinMarketCap API designed to be easy to use. https://github.com/shahradelahi/coinmarketcap
https://github.com/shahradelahi/coinmarketcap
api api-wrapper coinmarketcap library php
Last synced: 2 months ago
JSON representation
A PHP library for the CoinMarketCap API designed to be easy to use. https://github.com/shahradelahi/coinmarketcap
- Host: GitHub
- URL: https://github.com/shahradelahi/coinmarketcap
- Owner: shahradelahi
- License: mit
- Created: 2021-07-31T17:49:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T18:13:38.000Z (over 1 year ago)
- Last Synced: 2024-10-10T13:19:23.668Z (4 months ago)
- Topics: api, api-wrapper, coinmarketcap, library, php
- Language: PHP
- Homepage:
- Size: 80.1 KB
- Stars: 41
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> **Help wanted:** If you can improve this library, please do so.
> ***Pull requests are welcome.***# PHP CoinMarketCap API
This project is designed to help you make your own projects that interact with
the [CoinMarketCap API](https://coinmarketcap.com/api/documentation/v1).#### Requirements
```
ext-pcntl: *
ext-curl: *
ext-json: *
php: >=7.4
```#### Installation
```
composer require shahradelahi/coinmarketcap
```Click for help with installation
## Install Composer
If the above step didn't work, install composer and try again.
#### Debian / Ubuntu
```
sudo apt-get install curl php-curl
curl -s http://getcomposer.org/installer | php
php composer.phar install
```Composer not found? Use this command instead:
```
php composer.phar require "shahradelahi/coinmarketcap"
```#### Windows:
[Download installer for Windows](https://github.com/jaggedsoft/php-binance-api/#installing-on-windows)
#### Getting started
`composer require shahradelahi/coinmarketcap`
```php
require 'vendor/autoload.php';
$CMCApi = new CoinMarketCap\Api();
```=======
### Documentation
This library is based on this [CoinMarketCap](https://coinmarketcap.com/) endpoints, and there many more functions available, but they are not documented here, you should check the [Documentation](https://coinmarketcap.com/api/documentation/v1/) for more information.
* [Cryptocurrencies](docs/cryptocurrencies.md)
* [Fiat](docs/fiat.md)
* [Exchanges](docs/exchanges.md)### Licence
```
MIT LicenseCopyright (c) 2021 Shahrad Elahi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```