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.
- Install package:
composer require denpaw/laravel-playcoinrpc "^1.2"
- (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,
];
- Publish config file
php artisan vendor:publish --provider="Denpaw\Playcoin\Providers\ServiceProvider"
Visit Installation for detailed installation guide.
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 is available here.
- PHP 7.1 or higher
- Laravel 5.2 or higher
For PHP 5.6 and 7.0 use laravel-playcoinrpc v1.2.8.
This product is distributed under the MIT license.
If you like this project, please consider donating:
BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu
Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350
❤Thanks for your support!❤