PHPackages                             twh/umeng-open-api - 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. [API Development](/categories/api)
4. /
5. twh/umeng-open-api

ActiveLibrary[API Development](/categories/api)

twh/umeng-open-api
==================

Umeng OpenAPI, php官方sdk封装并修改.

v1.0.2(4y ago)2142MITPHPPHP &gt;=7.0

Since Oct 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tangweihui/UmengOpenApi)[ Packagist](https://packagist.org/packages/twh/umeng-open-api)[ RSS](/packages/twh-umeng-open-api/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

简介
==

[](#简介)

修复官方sdk的bug，整体代码沿用自

> [umeng官方文档](https://developer.umeng.com/open-api/state)

安装
--

[](#安装)

```
composer require Twh/umeng-open-api
```

快速使用
----

[](#快速使用)

例子: 获取应用的累计用户数 [此示例的umeng文档](https://developer.umeng.com/open-api/docs/com.umeng.umini/umeng.umini.getTotalUser/1)

```
use Twh\UmengOpenAPI\Factory;

$app = Factory::umini([
    'api_key'       => 'your key',
    'api_secret'    => 'your secret',
    'app_key'       => 'your APPKEY',
    // 指定 API 调用返回结果的类型：json(default)/array/object/raw(resultObject)
    'response_type' => 'json',
]);

// 参数1:api名 (com.umeng.umini:umeng.umini.getTotalUser-1, 传"getShareOverview" 即可)
// 参数2: 请求参数数组
$app->get('getShareOverview', [
    'fromDate'  => '2020-11-01',
    'toDate'    => '2020-11-01',
    'timeUnit'  => 'day',
    'pageIndex' => 1,
    'pageSize'  => 10,
]);
```

项目缘由
----

[](#项目缘由)

友盟官方的sdk, 在已有的composer项目中,用起来很不方便, 所以封装一个用.

贡献
--

[](#贡献)

欢迎提交PR

开源许可协议
------

[](#开源许可协议)

[MIT LICENSE](./LICENSE)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

1675d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74dceb9ac8d265950dbbc0395027f1c26e6f43146369bc83beccb0858d6c516e?d=identicon)[tangweihui](/maintainers/tangweihui)

---

Top Contributors

[![roiwk](https://avatars.githubusercontent.com/u/21002823?v=4)](https://github.com/roiwk "roiwk (6 commits)")[![tangweihui](https://avatars.githubusercontent.com/u/11569121?v=4)](https://github.com/tangweihui "tangweihui (2 commits)")

---

Tags

sdkanalyticsopen-apiumeng

### Embed Badge

![Health badge](/badges/twh-umeng-open-api/health.svg)

```
[![Health](https://phpackages.com/badges/twh-umeng-open-api/health.svg)](https://phpackages.com/packages/twh-umeng-open-api)
```

###  Alternatives

[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)
