Download the PHP package refring/monero-rpc-php without Composer
On this page you can find all versions of the php package refring/monero-rpc-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download refring/monero-rpc-php
More information about refring/monero-rpc-php
Files in refring/monero-rpc-php
Package monero-rpc-php
Short Description A modern fully strong-typed library for using the Monero daemon rpc and wallet rpc APIs
License MIT
Informations about the package monero-rpc-php
Monero Daemon & Wallet RPC client
Monero daemon and wallet RPC client library written in modern PHP.
Features
- Implements Monero wallet and daemon rpc methods
- Support authentication for the wallet and daemon rpc servers
- Fully strongly typed and strict_types enabled
- Minimal dependencies
- PSR-18 compatible, so different http client libraries can be used
Installation
You can install the package with Composer, at this this time minimum-stability has to be set to dev:
When your project does not have a http client available yet, you should require one as well.
Different http clients can be used:
guzzle
Other http clients
### symfony http client ### buzz ### php-http/curl-clientSetup
Creating a client
For the wallet rpc client:
Daemon rpc client:
Using authentication
Connecting through a proxy
Configuring a proxy is specific to the http client library.
Below is a Symfony Http Client example for a socks5 proxy:
Injecting a logger
The client builder also supports injecting a logger and/or a http client:
Usage
Creating a wallet and account
Testing
The project has unit tests and integration tests, the unit tests can be run using composer test:unit
To run the integration tests, you'll need docker
and docker compose
or you could run monerod
and monero-wallet-rpc
on your own.
If you have the docker stack installed, go to the tests
folder and run docker compose up
. Note that the daemon will run on port 18081
and monero-wallet-rpc
will run on port 18083
.
After that, run composer test:integration
to run the integration tests.
Roadmap
- [ ] More integration tests
- [ ] Improve documentation and add examples
Contributing
See CONTRIBUTING.md
Changelog
See CHANGELOG.md
License
The MIT License (MIT). Please see License File for more information.
Acknowledgments
- monero-rpc-rs - Parts of this project served as inspiration.
- monero-php - Thanks for providing the php ecosystem with a Monero library during all these years!
- Monero - Thanks to everybody involved!
All versions of monero-rpc-php with dependencies
ext-json Version *
ext-bcmath Version *
php-http/discovery Version ^1.19.0
psr/http-client Version ^1.0.2
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
psr/http-message Version ^1.1.0|^2.0.0
psr/log Version ^3.0
square/pjson Version ^0.4.0