PHPackages                             opensdk/caotravel - 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. opensdk/caotravel

ActiveLibaray

opensdk/caotravel
=================

曹操出行SDK

v0.0.1(5y ago)02MITPHPPHP &gt;=7.0.0

Since Oct 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/beJuvenile/opensdk-caotravel)[ Packagist](https://packagist.org/packages/opensdk/caotravel)[ RSS](/packages/opensdk-caotravel/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

opensdk-caotravel
=================

[](#opensdk-caotravel)

### 介绍

[](#介绍)

曹操出行SDK

#### 使用示例

[](#使用示例)

```
require '../vendor/autoload.php';

use OpenSDK\CaoTravel\Client;
use OpenSDK\CaoTravel\Requests\CaoTravelOrdersQueryGetRequest;

class CaoTravelOrdersQueryGetRequestTest
{
    public function __invoke()
    {
        $c = new Client();
        $c->appKey = $this->appKey;
        $c->appSecret = $this->appSecret;
        $c->gatewayUrl = $this->url;
        $req = new CaoTravelOrdersQueryGetRequest();

        $oid = '164418193202242';
        $req->setOrderId($oid);
        $req->setTimestamp(self::msectime());

        $c->execute($req);
        $response = $c->result();
        if(empty($response) || !isset($response['code']) || $response['code']!=200){
            echo '无结果';exit;
        }
        var_dump($response);exit;

    }
    public static function msectime() {

        list($msec, $sec) = explode(' ', microtime());
        $msectime = (int)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
        return $msectime;
    }
}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

2048d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2632156?v=4)[Eric Zhang](/maintainers/zhange)[@zhange](https://github.com/zhange)

---

Top Contributors

[![beJuvenile](https://avatars.githubusercontent.com/u/41072301?v=4)](https://github.com/beJuvenile "beJuvenile (11 commits)")[![yangq210](https://avatars.githubusercontent.com/u/58154486?v=4)](https://github.com/yangq210 "yangq210 (2 commits)")

---

Tags

sdk

### Embed Badge

![Health badge](/badges/opensdk-caotravel/health.svg)

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

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

416300.1M4](/packages/aws-aws-crt-php)[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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