zhengcai / ssapi
A simple Laravel server to server api sign and verify class.
v2.0.1
2023-12-09 08:14 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^7.3
- ixudra/curl: 6.*
This package is auto-updated.
Last update: 2024-04-09 09:07:32 UTC
README
A simple laravel server to server api sign and verify class.
Installation
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
Usage
Laravel usage
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); */