xnxktech / laravel-esign
Provide eSign (electronic contract signing) API for Laravel
Installs: 4 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- ext-openssl: *
- doctrine/cache: ^1.10
- guzzlehttp/guzzle: ^7.0
- laravel/framework: ^8.0 || ^9.0
- monolog/monolog: ^2.0
- pimple/pimple: ^3.0
- symfony/http-foundation: 5.4 || ^6.0
- symfony/psr-http-message-bridge: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- illuminate/support: ^9.3
- mockery/mockery: ^1.0
- nunomaduro/phpinsights: ^2.2
- orchestra/testbench: ^7.1
- pestphp/pest: ^1.21
- pestphp/pest-plugin-parallel: ^1.0
- phpunit/phpunit: ^9.0
README
Installation
$ composer require xnxktech/laravel-esign
Configuration
generate config file
$ php artisan vendor:publish --provider="XNXK\LaravelEsign\ServiceProvider"
Usage
The package will auto use environment variables, Put them in your .env as the following, obviously and respectively.
ESIGN_APPID= ESIGN_SECRET= ESIGN_SERVER= ESIGN_NOTIFY_URL=
Lastly, you can using Esign class in controller use namespace top of that file
use XNXK\LaravelEsign\Esign; $data = (new Esign)->account()->queryPersonalAccountByThirdId();
or if you want a simple, you can use esign function:
esign()->account()->queryPersonalAccountByThirdId();
Organization
esign()->account()->createOrganizeAccount($orgThirdPartyUserId, 'b5b9c524fa254c0fbf2150c98b87ac11', $name);
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).