Download the PHP package psychicat/monero-php without Composer

On this page you can find all versions of the php package psychicat/monero-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package monero-php

Monero-PHP

A PHP library for the Monero simplewallet JSON-RPC interface.

For more information about Monero, please visit https://getmonero.org/home.

If you found this useful, feel free to donate!

XMR: 47Vmj6BXSRPax69cVdqVP5APVLkcxxjjXdcP9fJWZdNc5mEpn3fXQY1CFmJDvyUXzj2Fy9XafvUgMbW91ZoqwqmQ6RjbVtp

Installation

Install the library using Composer.

composer require psychicat/monero-php

Create an Instance of the Wallet

Default hostname and port connects to http://127.0.0.1:18082.

To connect to an external IP or different port:

Wallet Methods

getBalance

Responds with the current balance and unlocked (spendable) balance of the wallet in atomic units. Divide by 1e12 to convert.

Example response:

getAddress

Responds with the Monero address of the wallet.

Example response:

transfer

Transfers Monero to a single recipient OR a group of recipients in a single transaction. Responds with the transaction hash of the payment.

Parameters:

Example response:

transferSplit

Same as transfer(), but can split into more than one transaction if necessary. Responds with a list of transaction hashes.

Additional property available for the options array:

Example response:

sweepDust

Sends all dust outputs back to the wallet, to make funds easier to spend and mix. Responds with a list of the corresponding transaction hashes.

Example response:

getPayments

Returns a list of incoming payments using a given payment ID.

Parameters:

getBulkPayments

Returns a list of incoming payments using a single payment ID or a list of payment IDs from a given height.

Parameters:

incomingTransfers

Returns a list of incoming transfers to the wallet.

Parameters:

queryKey

Returns the wallet's spend key (mnemonic seed) or view private key.

Parameters:

integratedAddress

Make and return a new integrated address from your wallet address and a given payment ID, or generate a random payment ID if none is given.

Parameters:

Example response:

splitIntegrated

Returns the standard address and payment ID corresponding for a given integrated address.

Parameters:

Example response:

getHeight

Usage:

Returns the current block height of the daemon.

Example response:

stopWallet

Cleanly shuts down the current simplewallet process.


All versions of monero-php with dependencies

PHP Build Version
Package Version
Requires graze/guzzle-jsonrpc Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package psychicat/monero-php contains the following files

Loading the files please wait ....