Skip to content

A basic PHP library for interacting with the Verge Core Daemon

Notifications You must be signed in to change notification settings

vergecurrency/php-verge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

____   _________________________   ________ ___________
\   \ /   /\_   _____/\______   \ /  _____/ \_   _____/
 \   Y   /  |    __)_  |       _//   \  ___  |    __)_ 
  \     /   |        \ |    |   \\    \_\  \ |        \ 2018 VERGE
   \___/   /_______  / |____|_  / \______  //_______  /
                   \/         \/         \/         \/ 

PHP-Verge

A basic PHP library to talk to a VERGEd daemon to get you started in your VERGE project! Proper rpc usage with basic examples given to assist you in your development. For a full list of available rpc commands issue the help command in your VERGEd.

Proud to be completely PSR compliant!

Requirements

Requires Composer https://getcomposer.org/

Requires VERGEd to already be installed and running on your local server or reachable by your server.

Get the VERGEd source from: https://github.com/vergecurrency/verge

compiling the coin is as easy as going into the ~/verge/src directory and typing (after you have dependencies installed): git clone https://github.com/vergecurrency/verge cd verge cd src make -f makefile.unix

Usage:

Create the composer autoload file with composer dump-autoload

Example Usage (see example.php for additional coverage):

// Composer Autoloader ( PSR-4 )
require_once 'vendor/autoload.php';

// Demo RPC configuration
$config = array(
    'user' => 'vergerpcuser',
    'pass' => 'rpcpassword',
    'host' => '127.0.0.1',
    'port' => '20102' );

// Initiate connection
$verge = new Verge\RPC(
    sprintf('http://%s:%s@%s:%s/',
        $config['user'],
        $config['pass'],
        $config['host'],
        $config['port']
    )
);

// Set name of the account.
$account['name'] = 'Positivism';

// Generate a new verge address.
$verge->getnewaddress($account['name']);

PHP-Verge created with <33 by: @Positivism

About

A basic PHP library for interacting with the Verge Core Daemon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages