PHP code example of aron / laravel-signature-verification
1. Go to this page and download the library: Download aron/laravel-signature-verification 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/ */
aron / laravel-signature-verification example snippets
\Signature::verifySignature('时间戳',
'随机字符串','requestBody', '签名认证key','客户端签名');
app('Signature')->verifySignature('时间戳',
'随机字符串','requestBody', '签名认证key','客户端签名');
bash
$ php artisan vendor:publish --provider="Aron\Signature\Provider\SignatureServiceProvider"
shell
php artisan signature:generate