A Monero library written in PHP by the Monero Integrations team.
This library has 3 main parts:
daemonRPC.php
monero-wallet-rpc
) JSON RPC API wrapper, walletRPC.php
cryptonote.php
, with both lower level functions used in Monero related cryptography and higher level methods for things like generating Monero private/public keys.In addition to these features, there are other lower-level libraries included for portability, eg. an ed25519 library, a SHA3 library, etc.
Documentation can be found in the /docs
folder.
monerod
)Debian (or Ubuntu) are recommended.
Start the Monero daemon (monerod
) on testnet.
monerod --testnet --detach
Start the Monero wallet RPC interface (monero-wallet-rpc
) on testnet.
monero-wallet-rpc --testnet --rpc-bind-port 28083 --disable-rpc-login --wallet-dir /path/to/wallet/directory
Edit example.php
with your the IP address of monerod
and monero-wallet-rpc
(use 127.0.0.1:28081
and 127.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 Monero daemon and wallet will be displayed.