1. Go to this page and download the library: Download trustenterprises/hashgraph library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
trustenterprises / hashgraph example snippets
return [
/***
* The URL of your serverless hashgraph client that has been configured through the serverless
* provider, likely to be vercel.
**/
'client_url' => env('HASHGRAPH_NODE_URL'),
/***
* The generated secret key that you have set for your serverless hashgraph client.
**/
'secret_key' => env('HASHGRAPH_SECRET_KEY'),
/***
* The webhook URL that can be configured to receive message events from your Serverless REST API.
**/
'webhook_route' => env('HASHGRAPH_WEBHOOK_ROUTE', '/hashgraph'),
];