monero-integrations/monerophp
Composer 安装命令:
composer require monero-integrations/monerophp
包简介
A Monero library written in PHP by the Monero-Integrations team.
关键字:
README 文档
README
Monero Library
A Monero library written in PHP by the Monero Integrations team.
How It Works
This library has 3 main parts:
- A Monero daemon JSON RPC API wrapper,
daemonRPC.php - A Monero wallet (
monero-wallet-rpc) JSON RPC API wrapper,walletRPC.php - A Monero/Cryptonote toolbox,
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.
Preview
Documentation
Documentation can be found in the /docs folder.
Configuration
Requirements
- Monero daemon (
monerod) - 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 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.phpwith your the IP address ofmonerodandmonero-wallet-rpc(use127.0.0.1:28081and127.0.0.1:28083, respectively, for testnet.) -
Serve
example.phpwith 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.
统计信息
- 总下载量: 23.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 124
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-29
