Giter Site home page Giter Site logo

php-verge's Introduction

____   _________________________   ________ ___________
\   \ /   /\_   _____/\______   \ /  _____/ \_   _____/
 \   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

php-verge's People

Contributors

justinvforvendetta avatar positivism avatar ryleysill93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-verge's Issues

failed to open stream: HTTP request failed! HTTP/1.0 501 Tor is not an HTTP Proxy

after run VERGEd
E:\CryptoWallets\XVG>VERGEd.exe
E:\Tor Browser\Browser\TorBrowser\Tor\PluggableTransports\obfs4proxy.EXE
May 13 08:36:46.963 [notice] Tor 0.3.2.8-rc-dev running on Windows 8 with Libevent 2.0.21-stable, OpenSSL 1.0.2k, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
May 13 08:36:46.967 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 13 08:36:46.995 [notice] Read configuration file "C:\Users\Zubair\AppData\Roaming\VERGE\tor\torrc".
May 13 08:36:48.061 [notice] Scheduler type KISTLite has been enabled.
May 13 08:36:48.061 [notice] Opening Socks listener on 127.0.0.1:9089

and when i access the example.php following error..
`Warning: fopen(http://[email protected]:9089/): failed to open stream: HTTP request failed! HTTP/1.0 501 Tor is not an HTTP Proxy in C:\xampp\htdocs\php-verge\jsonRPCClient.php on line 136

Fatal error: Uncaught Exception: Unable to connect to http://vergerpcuser:[email protected]:9089/ in C:\xampp\htdocs\php-verge*jsonRPCClient.php:144* Stack trace: #0 C:\xampp\htdocs\php-verge\verge.php(38): jsonRPCClient->__call('getaccountaddre...', Array) #1 C:\xampp\htdocs\php-verge\example.php(24): Verge->get_address('vergeDEV') #2 {main} thrown in C:\xampp\htdocs\php-verge*jsonRPCClient.php on line 144`*

if ($fp = fopen($this->url, 'r', false, $context))

Please guide how to fixed?

HTTP/1.1 501 Not Implemented

I have same problem to view layer:

2019-10-09 18:39:49 ::1 warning 2019-10-09 18:39:49 [2] SQLite3::query(): Unable to prepare statement: 1, no such table: lizmap_search C:\xampp\htdocs\mylizmap\lib\jelix\plugins\db\sqlite3\sqlite3.dbconnection.php 112

2019-10-09 18:39:50 ::1 warning 2019-10-09 18:39:50 [2] file_get_contents(http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetCapabilities?service=WMS&amp;request=GetCapabilitiesAtlas&amp;map=C%3A%5Cxampp%5Chtdocs%5Cmylizmap%5Clizmap%5Cwww%5Cprova%2Fprova%2Eqgs): failed to open stream: HTTP request failed! HTTP/1.1 501 Not Implemented
C:\xampp\htdocs\mylizmap\lizmap\modules\lizmap\classes\lizmapProxy.class.php 236

2019-10-09 18:39:51 ::1 warning 2019-10-09 18:39:51 [2] SQLite3::query(): Unable to prepare statement: 1, no such table: catasto_alb C:\xampp\htdocs\mylizmap\lib\jelix\plugins\db\sqlite3\sqlite3.dbconnection.php 112

Lizmap: 3.4pre.190808
Qgis server: 3.4.9
Windows 10

Thak you

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.