Download the PHP package sleefinance/simple-web3-php without Composer

On this page you can find all versions of the php package sleefinance/simple-web3-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 simple-web3-php

simple-web3-php

Latest Version on Packagist Join the chat at https://gitter.im/drlecks/Simple-Web3-Php Licensed under the MIT License

A php interface for interacting with the Ethereum blockchain and ecosystem.

Features

Install

Latest stable release

Or you can add this line in composer.json

Development (main branch)

Or you can add this line in composer.json

Usage

New instance

Convert values

Hex to Big Number:

Number to BigNumber:

Get average-human readable string representation from Big Number:

Format 1 ether to wei (unit required for ether values in transactions):

Get average-human readable string representation from a value conversion:

General ethereum block information call:

Refresh gas price

Estimate gas price (from send params)

Send 0.001 ether to address

Batch calls & transactions

Account

Contract interaction

Contract events (logs)

Contract creation (deployment)

Usual required includes

Provided Examples

In the folder Examples/ there are some extended examples with call & send examples:

The example is pre-configured to work with an infura endpoint:

Just add your infura project keys. If you have not configured the api secret key requisite, just ignore it.

If you are using a private endpoint, just ignore all the infura definitions:

To enable contract interaction, set the contract data (address & ABI). The file is preconfigured to work with our example contract, already deployed on ropsten.

To enable transaction sending & signing, enter a valid pair of address and private key. Please take this advises before continuing:

Example contract

The solidity contract used in this example is available too in the same folder: swp_contract.sol

Example disclaimer

Don't base your code structure on this example. This example does not represent clean / efficient / performant aproach to implement them in a production environment. It's only aim is to show some of the features of Simple Web3 Php.

Modules

TODO

License

MIT

DONATIONS (ETH)


All versions of simple-web3-php with dependencies

PHP Build Version
Package Version
Requires web3p/rlp Version 0.3.4
kornrunner/ethereum-offline-raw-tx Version ^0.6.0
kornrunner/keccak Version ~1
phpseclib/phpseclib Version ~2.0.30
simplito/elliptic-php Version ^1.0
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 sleefinance/simple-web3-php contains the following files

Loading the files please wait ....