2017 © Pedro Peláez
 

library laravel-electrum

A Laravel 5.4+ wrapper for Electrum

image

araneadev/laravel-electrum

A Laravel 5.4+ wrapper for Electrum

  • Friday, September 29, 2017
  • by araneadev
  • Repository
  • 2 Watchers
  • 3 Stars
  • 114 Installations
  • Vue
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Electrum for Laravel 5.4+

Author: Tim Schipper info@aranea-development.nl
Description: Electrum support for Laravel with optional Vue wallet component., (*1)

Wallet Web Interface, (*2)

Latest Version on Packagist Packagist Scrutinizer Build StyleCI Quality Score Total Downloads, (*3)

WARNING: Be safe and never ever put your private keys on a webserver, use a watch only wallet or even better, get and setup a hardware wallet, so your keys and coins will be safe., (*4)

Installation:

Require this package in your composer.json and update composer. This will download the package., (*5)

composer require araneadev/laravel-electrum

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*6)

AraneaDev\Electrum\ElectrumServiceProvider::class,

Requirements:

  • PHP >=7.0
  • Laravel >= 5.4+
  • Electrum >= 4.0

Setup Electrum

Download and install Electrum if you haven't done so yet., (*7)

electrum daemon -d
electrum setconfig log_to_file true
electrum setconfig rpchost 127.0.0.1
electrum setconfig rpcport 7777
electrum setconfig rpcuser your_user
electrum setconfig rpcpassword your_password
electrum stop
electrum daemon -d
electrum create
electrum load_wallet

And set then following variables in your .env file:, (*8)

ELECTRUM_RPC_HOST=http://127.0.0.1
ELECTRUM_RPC_PORT=7777
ELECTRUM_RPC_USER=your_user
ELECTRUM_RPC_PASS=your_password

Optional Web Interface installation

Requirements

  • Clipboard.js >= 1.7.1
  • Moment.js >= 2.4.0
  • Vue * >= 2.1.10
  • Vue QR Component >= 2.1.1
  • Vue2 Bootstrap Modal > 0.1.11
  • Axios * >= 0.16.2
  • Lodash * >= 4.17.4
  • Bootstrap * >= 3.3.7

* Included in Laravel 5.4+, (*9)

Install Clipboard.js, Moment.js and Vue QR Component

npm install clipboard --save-dev
npm install moment --save-dev
npm install vue2-bootstrap-modal --save-dev
npm install vue-qrcode-component --save-dev

Publish the assets

php artisan vendor:publish --provider=AraneaDev\Electrum\ElectrumServiceProvider

Enable the Web interface in config/electrum.php., (*10)

[
    ....
    'webinterface'=> [
        'enabled' => true,
        ....
    ]
]

Then add the following line to your app.js:, (*11)

Vue.component('electrum-wallet', require('./vendor/araneadev/Electrum.vue'));

Available Commands

Electrum's JSON-RPC methods are mapped to artisan commands:, (*12)

php artisan electrum [METHOD] [--address=ADDRESS] [--txid=TXID] [--key=KEY]

The Versions

29/09 2017

dev-master

9999999-dev

A Laravel 5.4+ wrapper for Electrum

  Sources   Download

GPL3

The Requires

 

by Tim Schipper

13/09 2017

0.1

0.1.0.0

A Laravel 5.4+ wrapper for Electrum

  Sources   Download

GPL3

The Requires

 

by Tim Schipper