Download the PHP package stellitecoin/stellitephp without Composer
On this page you can find all versions of the php package stellitecoin/stellitephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stellitecoin/stellitephp
More information about stellitecoin/stellitephp
Files in stellitecoin/stellitephp
Package stellitephp
Short Description A Stellite library written in PHP.
License MIT
Homepage https://github.com/stelllitecoin/stellitephp
Informations about the package stellitephp
Stellite Library
A Stellite library written in PHP fork from Monero Integrations team.
How To Use
Using composer
composer require stellitecoin/stellitephp
Include composer autoload
require_once __DIR__ . '/vendor/autoload.php';
This library has 3 main parts. All libraries now uses PSR-4 namespacing.
- A Stellite daemon JSON RPC API wrapper, (
\Stellite\Rpc\Daemon
) -
A Stellite wallet (
stellite-wallet-rpc
) JSON RPC API wrapper, (\Stellite\Rpc\Wallet
) - A Monero/Cryptonote toolbox,
cryptonote.php
, with both lower level functions used in Stellite related cryptography and higher level methods for things like generating Stellite private/public keys. (not yet refactored)
In addition to these features, there are other lower-level libraries included for portability, eg. an ed25519 library, a SHA3 library, etc.
Preview
Documentation
Documentation can be found in the /docs
folder.
Configuration
Requirements
- Stellite daemon (
stellited
) - Webserver with PHP, for example XMPP, Apache, or NGINX
- cURL PHP extension for JSON RPC API(s)
- GMP PHP extension for about 100x faster calculations (as opposed to BCMath)
Debian (or Ubuntu) are recommended.
Getting Started
-
Start the Stellite daemon (
stellited
) on testnet. -
Start the Stellite wallet RPC interface (
stellite-wallet-rpc
) on testnet. -
Edit
example.php
with your the IP address ofstellited
andstellite-wallet-rpc
(use127.0.0.1:28081
and127.0.0.1:28083
, respectively, for testnet.) - Serve
example.php
with your webserver (eg. XMPP, Apache/Apache2, NGINX, etc.) and navigate to it. If everything has been set up correctly, information from your Stellite daemon and wallet will be displayed.