katena-chain/sdk-php

Katena SDK-php

v1.4.0 2021-03-26 08:44 UTC

This package is auto-updated.

Last update: 2024-03-26 15:28:57 UTC


README

Requirements

  • PHP >= 7.1
  • ext-json

Install

composer require katena-chain/sdk-php

Usage

To rapidly interact with our API, you can use our Transactor helper. It handles all the steps needed to correctly format, sign and send a tx.

Feel free to explore and modify its code to meet your expectations.

Examples

Detailed examples are provided in the examples folder to explain how to use our Transactor helper methods.

You can change various settings in the examples/common/Settings.php file.

Available examples:

  • Send a Certificate transaction
  • Send a Secret transaction
  • Send a KeyCreate transaction
  • Send a KeyRotate transaction
  • Send a KeyRevoke transaction
  • Retrieve Certificate related transactions
  • Retrieve Secret related transactions
  • Retrieve Key related transactions and its state
  • Retrieve a list of Key states for a company

For instance, to send a certificate:

php examples/sendCertificateRaw.php

Katena documentation

For more information, check the katena documentation.