定制 trustenterprises/hashgraph 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trustenterprises/hashgraph

最新稳定版本:3.0.1-alpha

Composer 安装命令:

composer require trustenterprises/hashgraph

包简介

Laravel package to integrate with Trust Enterprises Hedera REST API

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Trust backed by Hedera Hashgraph using your own serverless REST client by Trust Enterprises.

The project manages any trust events and consensus responses, it is a full solution for managing webhook functionality after a client has received consensus.

Support us

We're open to ongoing financial support to help with the continuation of the development of these libraries and projects and help for integration for your current SaaS projects, if you are interested in sponsoring/working with us please get in contact.

Installation

You can install the package via composer:

composer require trustenterprises/hashgraph

You can publish and run the migrations with:

php artisan vendor:publish --provider="Trustenterprises\LaravelHashgraph\LaravelHashgraphServiceProvider" --tag="migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Trustenterprises\LaravelHashgraph\LaravelHashgraphServiceProvider" --tag="config"

This is the contents of the published config file:

<?php

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'),
];

Deployment with the hedera serverless client

This is a Laravel library and introduces a migration, listenable events and a new webhook route.

Set the WEBHOOK_URL in your serverless client to domain.com/hashgraph where domain is your URL. Read more about our usage of webhooks.

For local development you can use ngrok to expose your local server.

Usage

// Your Imports
use Trustenterprises\LaravelHashgraph\LaravelHashgraph;
use Trustenterprises\LaravelHashgraph\Models\ConsensusMessage;

// Code
$message = new ConsensusMessage('This is an event you wish to store');
$message->setReference('MattSmithies'); // optional

LaravelHashgraph::withTopic('Trust Enterprises')->sendMessage($message);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email info@mattsmithies.co.uk instead of using the issue tracker.

Credits

License

The Apache 2.0 License. Please see License File for more information.

统计信息

  • 总下载量: 2.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固