Download the PHP package manamine/php-eos-rpc-sdk without Composer

On this page you can find all versions of the php package manamine/php-eos-rpc-sdk. 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 php-eos-rpc-sdk

The PHP SDK for the EOS RPC API

A PHP wrapper for the EOS Chain/Wallet RPC API.

Background

You can check out the RPC API reference but beware that some of the newer methods are missing. Wallet RPC APIs are implemented as v1.1.0 of RPC API reference. Also, some of the examples in those docs use outdated syntax.

Installing

Configuration

Create a dotenv .env file in the project root, with your favorite RPC API host and KEOSD. You can use .env.example as a template:

Usage

There is a shiny factory method to auto instantiate all dependencies:

Examples

To get you started, there is a simple example runner which covers all API commands.

Just run this via cli to see example output for all commands:

API Methods

Almost Chain/Wallet API methods are covered.

Chain APIs

Get Info

Get latest information related to a node

Get Block

Get information related to a block

Get Block Header State

Get information related to a block header state

Get Account

Get information related to an account

Get Code

Fetch smart contract code

Get Table Rows

Fetch smart contract data from an account

Get Currency Balance

Fetch currency balance(s) for an account

Get Currency Stats

Fetch stats for a currency

Get ABI

Get an account ABI

Get Raw Code and ABI

Get raw code and ABI

Get Producers

List the producers

ABI JSON To Bin

Serialize json to binary hex

ABI Bin To JSON

Serialize back binary hex to json

Get Required Keys

Get the required keys needed to sign a transaction

Push Transaction

Push a transaction

Push Transactions

Push transactions

Wallet APIs

Create

Creates a new wallet with the given name

Open

Opens an existing wallet of the given name

Lock

Locks an existing wallet of the given name

Lock All

Locks all existing wallets

Unlock

Unlocks a wallet with the given name and password

Import Key

Imports a private key to the wallet of the given name

Remove Key

Removes a key pair from the wallet of the given name

Create Key

Creates a key pair and import

List Wallets

Lists all wallets

List Keys

Lists all key pairs from the wallet of the given name and password

Get Public Keys

Lists all public keys across all wallets

Set Timeout

Sets wallet auto lock timeout (in seconds)

Sign Transaction

Signs a transaction

EOS Wrapper APIs

Prerequisites

Need to set wallet name and password

Push Transaction

Push a transaction

Make Transaction

Make a transaction (useful for pushTransactions)

Push Transactions

Push transactions

Push Action

Push an action

Transfer

Transfers token

Create Key Pair

Creates a key pair and returns

Tests

To run the test suites, simply execute:

If you wanna get fancy and check code coverage:

If you're really bored, you might wanna run some static analysis:

Contributing

All contributions are welcome! Just fire up a PR, make sure your code style is PSR-2 compliant:

License

Free for everyone!

MIT License


All versions of php-eos-rpc-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.0
vlucas/phpdotenv Version ^2.4
php-curl-class/php-curl-class Version ^8.1
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 manamine/php-eos-rpc-sdk contains the following files

Loading the files please wait ....