Skip to content

🌟 Laravel eSign evidence API (e签宝区块链数据存证API)

License

Notifications You must be signed in to change notification settings

XNXKTech/laravel-evidence

Repository files navigation

laravel-evidence

Tests PHP from Packagist Packagist Version GitHub release (latest by date) GitHub last commit (branch) GitHub Release Date LICENSE LICENSE 996.icu

Installation

$ composer require xnxktech/laravel-evidence

Configuration

generate config file

$ php artisan vendor:publish --provider="XNXK\LaravelEvidence\ServiceProvider"

Document

https://open.esign.cn/doc/detail?id=opendoc%2Fevidence%2Fmourn5&namespace=opendoc%2Fevidence

Usage

The package will auto use environment variables, Put them in your .env as the following, obviously and respectively.

EVIDENCE_APPID=
EVIDENCE_SECRET=
EVIDENCE_SERVER=
ESIGN_SERVER=

Lastly, you can using Evidence class in controller use namespace top of that file

use XNXK\LaravelEvidence\Evidence;

$data = (new Evidence)->temp()->createBusiness();

or if you want a simple, you can use evidence function:

evidence()->temp()->createBusiness();

License

The code in this repository, unless otherwise noted, is under the terms of both the Anti 996 License and the Apache License (Version 2.0).

About

🌟 Laravel eSign evidence API (e签宝区块链数据存证API)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages