zhengcai/ssapi

A simple Laravel server to server api sign and verify class.

Installs: 70

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zhengcai/ssapi

v2.0.1 2023-12-09 08:14 UTC

This package is auto-updated.

Last update: 2025-12-09 12:39:41 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);
    */