Git Product home page Git Product logo

denpaw's Introduction

Playcoin JSON-RPC Service Provider for Laravel

Latest Stable Version License Build Status Code Climate Code Coverage Join the chat at https://gitter.im/laravel-playcoinrpc/Lobby

About

This package allows you to make JSON-RPC calls to Playcoin Core JSON-RPC server from your laravel project. It's based on denpaw/php-playcoinrpc project - fully unit-tested Playcoin JSON-RPC client powered by GuzzleHttp.

Quick Installation

  1. Install package:
composer require denpaw/laravel-playcoinrpc "^1.2"
  1. (skip if using Laravel 5.5 or newer) Add service provider and facade to ./config/app.php
...
'providers' => [
    ...
    Denpaw\Playcoin\Providers\ServiceProvider::class,
];
...
'aliases' => [
    ...
    'Playcoind' => Denpaw\Playcoin\Facades\Playcoind::class,
];
  1. Publish config file
php artisan vendor:publish --provider="Denpaw\Playcoin\Providers\ServiceProvider"

Visit Installation for detailed installation guide.

Usage

This package provides simple and intuitive API to make RPC calls to Playcoin Core (and some altcoins)

$hash = '000000000001caba23d5a17d5941f0c451c4ac221cbaa6c60f27502f53f87f68';
$block = playcoind()->getBlock($hash);
dd($block->get());

Check Usage for more information and examples.

Documentation

Documentation is available here.

Requirements

  • PHP 7.1 or higher
  • Laravel 5.2 or higher

For PHP 5.6 and 7.0 use laravel-playcoinrpc v1.2.8.

License

This product is distributed under the MIT license.

Donations

If you like this project, please consider donating:
BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu
Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350

❤Thanks for your support!❤

denpaw's People

Contributors

residentevo avatar admecoin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.