beliven-it/laravel-notarify
最新稳定版本:1.0.0
Composer 安装命令:
composer require beliven-it/laravel-notarify
包简介
A laravel package to perform notarization through blockchain
README 文档
README
A laravel package to perform notarization through blockchain.
This package supports notarization on the following providers:
Installation
You can install the package via composer:
composer require beliven-it/laravel-notarify
You can publish the config file with:
php artisan vendor:publish --tag="notarify-config"
Set the ENV variables
NOTARIFY_SERVICE=scalingparrots
// NOTARIFY_SERVICE=iuscribo
// If you use Scaling Parrots
SCALING_PARROTS_ENDPOINT=
SCALING_PARROTS_USERNAME=
SCALING_PARROTS_PASSWORD=
// If you use Iuscribo
IUSCRIBO_ENDPOINT=
IUSCRIBO_USERNAME=
IUSCRIBO_PASSWORD=
IUSCRIBO_COMPANY==
Usage
<?php use Beliven\Notarify\Facades\Notarify; $notarization = Notarify::upload($item) // $item is a file $notarization = Notarify::verify($item); // $item can be a file or a Notarization instance // The returned value is an instance of Beliven\Notarify\Entities\Notarization::class, which has the following public methods: $notarization->getId(); // Returns the Notarization ID $notarization->getHash(); // Returns the Notarization Hash $notarization->getTimestamp(); // Returns the Notarization timestamp as a Carbon instance (UTC Timezone) $notarization->getExplorerUrls(); // Returns the Notarization explorer urls as indexed array
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-19
