PHPackages                             twusa/grpc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. twusa/grpc

ActiveLibrary

twusa/grpc
==========

twusa carrier grpc client

v1.06(4mo ago)113PHPPHP &gt;=5.6

Since Dec 3Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/twusaDevelop/twusa-carrier-grpc-client)[ Packagist](https://packagist.org/packages/twusa/grpc)[ RSS](/packages/twusa-grpc/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (9)Dependencies (2)Versions (6)Used By (0)

twusa-carrier-grpc-client
=========================

[](#twusa-carrier-grpc-client)

### UPS TRACK

[](#ups-track)

```
$host = 'hostname';
$client = new \Carrier\Ups\ServiceClient($host,[
    'credentials' => \Grpc\ChannelCredentials::createInsecure(),
]);
$req = new \Carrier\Ups\TrackRequest();
$auth = new \Carrier\Ups\Auth();
$auth->setAccessLicenseNumber();
$auth->setAccountNumber();
$auth->setPassword();
$auth->setUsername();
$req->setAuthorization($auth);
$req->setTrackNumber('1Z79381232340877123');

/**
 * @var \Carrier\Ups\TrackResponse $reply
 * @var \Grpc\Status $status
 */
list($reply,$status) = $client->Track($req,metaData())->wait();
if($status->code != \Grpc\STATUS_OK){
    echo "{$status->detail}\n";
    return;
}

function metaData(){
    return ['token' => 'KDA88999'];
}

```

### UPS Label

[](#ups-label)

```
$host = '127.0.0.1:7777';
$client = new \Carrier\Ups\ServiceClient($host,[
    'credentials' => \Grpc\ChannelCredentials::createInsecure(),
]);
$req = new \Carrier\Ups\CreateLabelRequest();

//UPS 授权信息
$auth = new \Carrier\Ups\Auth();

//发件人
$shipper = new \Carrier\Ups\Location();

//目的地
$shipTo = new \Carrier\Ups\Location();

//起始地
$shipFrom = new \Carrier\Ups\Location();

//付款方式
$payment = new \Carrier\Ups\Payment();

//包裹信息
$package = new \Carrier\Ups\Package();

//发货信息
$shipment = new \Carrier\Ups\Shipment();

//面单信息
$shipment->setLabelFormat(\Carrier\Ups\Shipment\LabelFormat::PNG);
$shipment->setPackage($package);
$shipment->setService(Carrier\Ups\Shipment\Service::GROUND);
$shipment->setShipper($shipper);
$shipment->setShipFrom($shipFrom);
$shipment->setShipTo($shipTo);
$req->setAuthorization($auth);
$req->setShipment($shipment);
$req->setAuthorization($auth);
$req->setShipment($shipment);
list($reply,$status) = $client->CreateLabel($req,['token' => '']);

/**
 * @var \Carrier\Ups\CreateLabelResponse $reply
 * @var \Grpc\Status $status
 */
list($reply,$status) = $client->Track($req,metaData())->wait();
if($status->code != \Grpc\STATUS_OK){
    echo "{$status->detail}\n";
    return;
}

function metaData(){
    return ['token' => 'KDA88999'];
}

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance76

Regular maintenance activity

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~374 days

Total

5

Last Release

128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/827a2e17debdd77a7b02c9932921c4903d265575e8a4e9bfb7280d8242398554?d=identicon)[twusa](/maintainers/twusa)

---

Top Contributors

[![twusaDevelop](https://avatars.githubusercontent.com/u/56706243?v=4)](https://github.com/twusaDevelop "twusaDevelop (1 commits)")

### Embed Badge

![Health badge](/badges/twusa-grpc/health.svg)

```
[![Health](https://phpackages.com/badges/twusa-grpc/health.svg)](https://phpackages.com/packages/twusa-grpc)
```

###  Alternatives

[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)[google/grpc-gcp

gRPC GCP library for channel management

18497.8M3](/packages/google-grpc-gcp)[googleads/google-ads-php

Google Ads API client for PHP

3497.6M9](/packages/googleads-google-ads-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
