katena-chain / sdk-php
Katena SDK-php
Installs: 192
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/katena-chain/sdk-php
Requires
- php: ^7.1
- ext-json: *
- doctrine/annotations: ~1.10
- ergebnis/json-printer: ~3.0
- guzzlehttp/guzzle: ~7.0
- paragonie/sodium_compat: ~1.9
- symfony/property-access: ~5.0
- symfony/property-info: ~5.0
- symfony/serializer: ~5.0
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
Certificatetransaction - Send a
Secrettransaction - Send a
KeyCreatetransaction - Send a
KeyRotatetransaction - Send a
KeyRevoketransaction - Retrieve
Certificaterelated transactions - Retrieve
Secretrelated transactions - Retrieve
Keyrelated transactions and its state - Retrieve a list of
Keystates for a company
For instance, to send a certificate:
php examples/sendCertificateRaw.php
Katena documentation
For more information, check the katena documentation.