ternary / rpc
ternary http client library
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ternary/rpc
Requires
- php: >=7.3
- guzzlehttp/guzzle: ~7.4
- tightenco/collect: v8.34.0
This package is auto-updated.
Last update: 2025-12-29 03:14:03 UTC
README
This is a private warehouse service, feel free to use, problems need to be resolved
Test code
require_once './vendor/autoload.php'; use Ternary\Http\TernaryHttp; $url = 'https://tmsgcenterapi.geniuel.com/push_notification'; $params = ['user_list' => ['598'], 'notification' => '测试调用']; $response = TernaryHttp::asJson()->setConnectTimeout(2) ->setRequestTimeout(5)->post($url, $params)->json(); dd($response);