A simple laravel server to server api sign and verify class.
Pull this package in through Composer.
{
"require": {
"zhengcai/ssapi": "1.*"
}
}
or run in terminal:
composer require zhengcai/ssapis
then copy the config file
php artisan vendor:publish
use Zhengcai\SsApi\Facades\SsApi;
$response = SsApi::server('ServerName')
->get($api, $data, $headers);
/* or
->post($api, $data, $headers);
->put($api, $data, $headers);
->patch($api, $data, $headers);
->delete($api, $data, $headers);
*/