iota-community / iota.php
IOTA.php library implementation in PHP
Installs: 1 019
Dependents: 0
Suggesters: 0
Security: 0
Stars: 45
Watchers: 8
Forks: 7
Open Issues: 2
Requires
- php: >=8.0.0
- ext-curl: *
- ext-mbstring: *
- ext-sodium: *
Requires (Dev)
- phpunit/phpunit: ^9.5.5
README
About
PHP library to interact with an IOTA chrysalis SingleNode or PermaNode. Create, manipulate, verify IOTA DIDs. Create wallets, mnemonic, seeds, addresses.
The aim of the tanglePHP lib is to offer PHP developers an easy way to interact with the IOTA chrysalis network.
This library is functionally complete, but it is recommended to use iota.rs. The rust library will be more heavily maintained and is more performant.
This library allows you to do the following:
Interact with an IOTA SingleNode (Hornet, Bee)
- Create messages with indexation
- Create messages with transaction payloads (send Tokens)
- Get messages and outputs
Wallet/Crypto
- Generate mnemonic, seeds, addresses
Interact with the IOTA Faucet Api
- Get funds on devnet
Decentralized Identifiers (DID)
- create, manipulate, verify
Interact with an IOTA PermaNode (Chronicle)
- Get messages and outputs
Requirements
- PHP 8+
- PHP Extensions:
Example
<?php // include iota lib require_once("autoload.php"); // create client $client = new IOTA\Client\SingleNodeClient(); // print result of node information echo $client->info();
Using iota.php library
Using the library is easy, more information can be found here.
Additional Examples: Please find other examples in the ./examples folder.
Joining the discussion
If you want to get involved in the community, need help with getting set up, have any issues or just want to discuss IOTA, feel free to join our IOTA Discord and post in the #php channel.
Social
Follow me on Twitter @tanglePHP
Follow me on Soonaverse
Donation
It took me a lot of time to develop iota.php and need to pay for the server every month. If you want to support me or if my work helps you, kindly consider a small donation.
License
The Apache 2.0 license can be found here.