Download the PHP package furqansiddiqui/erc20-php without Composer

On this page you can find all versions of the php package furqansiddiqui/erc20-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?
furqansiddiqui/erc20-php
Rate from 1 - 5
Rated 5.00 based on 2 reviews

Informations about the package erc20-php

ERC20 Tokens

Interact with any ERC20 standard Ethereum token

This package is ultimate response to historic issue of no native API being available to PHP developers to interact with ERC20 tokens (i.e. web3js contracts API).

This package relies on furqansiddiqui/ethereum-php package to perform all ABI encoding and decoding, as well as communication with Ethereum node using RPC/API, resulting in pure simple and easy to use API for developers to perform all ERC20 standard operations.

Ethereum Node Status
Geth / Ethereum-Go RPC :heavy_check_mark:
Infura.IO :heavy_check_mark:

Demo

string(9) "TetherUSD" string(4) "USDT" int(6) string(18) "32284517903064882" string(11) "53150417979" string(12) "53150.417979"



## Custom ABI

* Standard/base ERC20 ABI is included in package.
* To included extended/custom ERC20 ABI (depending on your requirments), use one of the following methods:
    * Extend [BaseERC20Contract](src/BaseERC20Contract.php) class to define custom ABI functions and events.
    * Decode your custom ABI JSON file and provide it to constructor:

### Scaled Values

Use `getScaledValue` and `fromScaledValue` to convert amounts from/to `uint256`.

### Prerequisites

* **PHP** ^8.1
* **Ethereum PHP lib** ([furqansiddiqui/ethereum-php](https://github.com/furqansiddiqui/ethereum-php/)) > 0.2.0

## Installation

`composer require furqansiddiqui/erc20-php`

## Changelog

* **0.3.0**: This library alongside several others such
  as [ethereum-php](https://github.com/furqansiddiqui/ethereum-php/) have been modernised and requires PHP ^8.1.

All versions of erc20-php with dependencies

PHP Build Version
Package Version
Requires php-64bit Version ^8.1
ext-bcmath Version *
furqansiddiqui/ethereum-php Version ^0.3.7
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 furqansiddiqui/erc20-php contains the following files

Loading the files please wait ....