Download the PHP package rcxcob2016/eip712 without Composer

On this page you can find all versions of the php package rcxcob2016/eip712. 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 eip712

eip-712

PHP codecov Licensed under the MIT License

This is a library laravel / php to help generata an EIP712 Hash for signing and verifying EIP-712 based messages. It is fully written for php 8.0, and is currently only compatible with the latest specification of EIP-712 (eth_signTypedData_v4).

https://eips.ethereum.org/EIPS/eip-712

Note that this library currently does not handle the signing itself. For this, you can use something like kornrunner\Secp256k1. For some examples please see below.

Installation

Getting Started

First, define your typed data as a JSON string or PHP array, according to the JSON schema specified by EIP-712. For example:

Example

It allows arrays

You many need to recompose signature!!

Sometimes hex doesnt work. You may need to recompose signature

Encoder Functions

Here is a brief description of the functions available in the encoder. For more detailed examples, you can refer to src/tests.

Encoder::encode(SleepFinance\Eip712 $typedData)

This function will return the full EIP-191 encoded message to be signed hashed using Keccak256.

Encoder::getStructHash(SleepFinance\Eip712 $typedData, $type, $data)

This function returns a Keccak-256 hash for a single struct type (e.g. EIP712Domain, Person or Mail).

Encoder::encodeData(Eip712 $typedData, string $type, data)

This function returns the raw ABI encoded data for the struct type.

Encoder::getTypeHash(Eip712 $typedData, string $type)

This function returns the type hash for a struct type. This is the same as Keccak256(EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)), with support optional sub-types automatically included too.

Encoder::encodeType(Eip712 $typedData, string $type)

This function returns the type string before hashing it, e.g. EIP712Domain(string name,string version,uint256 chainId,address verifyingContract), with optional sub-types automatically included too.

Non-standard domains are currently not tested!

It's possible to use a custom domain format, like from the CIP-23 specification, if you want to use a custom implementation of EIP-712.

To do this, Intialize EIP172 with your custom domain; schema validation will be skipped!

twitter Telegram

see you on the flipside!


All versions of eip712 with dependencies

PHP Build Version
Package Version
Requires kornrunner/keccak Version ^1.1
kornrunner/solidity Version ^0.2.0
illuminate/collections Version ^8.0|^9.0|^10.9
illuminate/support Version ^8.0|^9.0|^10.9
sleefinance/simple-web3-php Version ^0.12.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 rcxcob2016/eip712 contains the following files

Loading the files please wait ....