andskur/coinmc

CoinMarketCap.com api wrapper for Laravel 5.4
223 13
Install
composer require andskur/coinmc
Latest Version:0.5
PHP:>=5.5.9
License:MIT
Last Updated:Jun 22, 2018
Links: GitHub  ·  Packagist
Maintainer: andskur

CoinMc-laravel

PHP version Latest Stable Version

CoinMc-laravel is a sCoinMarketCap.com api wrapper for Laravel 5.4

Install

composer require andskur/coinmc

Configuration

After installing, register the Andskur\CoinMc\CoinMcServiceProvide in your config/app.php configuration file:

'providers' => [
    // Other service providers...

    Andskur\CoinMc\CoinMcServiceProvider::class,
],

Also, add the CoinMc facade to the aliases array in your app configuration file:

'CoinMc' => Andskur\CoinMc\CoinMcFacade::class,

Usage

<?php

namespace App\Http\Controllers;

use CoinMc;

class SomeController extends Controller
{
    public function index(CoinMc $coinmc)
    {

        // Get CoinMarketCap tickers sorting by 24h volume
		$coinmc->getTicker();

		// Get ticker for specific coin
		$coin = 'bitcoin';
		$coinmc->tickerCoin($coin);

		// Get global data
		$coinmc->globalData();
    }
}

See the API documentation for more information about the endpoints and responses.

License

CoinMc-laravel is open-sourced software licensed under the MIT license

Related Packages

messerli90/bittrex

Laravel Bittrex API wrapper / facade

393 5
hexters/coinpayment

CoinPayment is a Laravel package for handling cryptocurrency transactions throug...

62,564 69
hamrahpay/blockchain

Blockchain for Laravelists! Create & manage wallets, send funds and generate pay...

14 0
blocktrail/simple-block-explorer

A simple Bitcoin block explorer built on Laravel with Blocktrail API

7 20
denpa/laravel-bitcoinrpc

Bitcoin JSON-RPC Service Provider for Laravel

54,625 90