PHP code example of zhengcai / ssapi

1. Go to this page and download the library: Download zhengcai/ssapi 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/ */

    

zhengcai / ssapi example snippets



    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);
    */