Download the PHP package php-core/wert-sc-signer without Composer

On this page you can find all versions of the php package php-core/wert-sc-signer. 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 wert-sc-signer

WertWidget Smart Contract Signing Helper

Installation

Usage

Standard PHP

Laravel

The package includes Laravel integration. The service provider and facade will be automatically registered.

  1. Publish the configuration file:

  2. Add your Wert private key to your .env file:

  3. Use the facade in your code:

Function signSmartContractData returns the given options array with an addition of a "signature" property. You can pass the result directly to WertWidget initializer.

Using Multiple Credentials

The package supports using multiple API credentials in the same Laravel project. This is useful when you need to:

Configuration:

Update your config/wert-sc-signer.php file:

Add the corresponding environment variables to your .env file:

Usage:

Dynamic Credential Selection:

You can select credentials dynamically based on your application logic:

Options

Property Required Type Description
address required string User's address that will act as a fallback address if a smart contract can't be executed. In case of fallback, Wert will transfer commodity_amount to this address
commodity required string List of supported currencies
network optional string List of supported currencies
commodity_amount required numeric An amount of crypto necessary for executing the given smart contract
sc_address required string The address of the smart contract
sc_input_data required string Data that will be used for smart contract execution, in the hex format

Example

Private key

Was given to you during your registration in the Wert system as a partner. If you don't have one, contact Wert.

Requirements


All versions of wert-sc-signer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-sodium Version *
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 php-core/wert-sc-signer contains the following files

Loading the files please wait ...