PHPackages                             roiwk/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. roiwk/umeng-open-api

ActiveLibrary[API Development](/categories/api)

roiwk/umeng-open-api
====================

Umeng OpenAPI,官方sdk封装.

v1.0(5y ago)24.9k1MITPHPPHP &gt;=7.0

Since Dec 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/roiwk/UmengOpenAPI)[ Packagist](https://packagist.org/packages/roiwk/umeng-open-api)[ RSS](/packages/roiwk-umeng-open-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

简介
==

[](#简介)

一个简单,好用的友盟open-api的包... 封装了友盟官方open-api的sdk, 官方sdk版本1.1.4

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

安装
--

[](#安装)

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

快速使用
----

[](#快速使用)

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

```
require_once 'path/to/autoload.php';

use Roiwk\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, 传"getTotalUser" 即可)
// 参数2: 请求参数数组
$app->get('getTotalUser', [
    'fromDate'  => '2020-11-01',
    'toDate'    => '2020-11-01',
    'pageIndex' => 1,
    'pageSize'  => 10,
]);
```

项目缘由
----

[](#项目缘由)

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

贡献
--

[](#贡献)

欢迎提交PR

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

[](#开源许可协议)

[MIT LICENSE](./LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1beffb7f6ed8456ac0dff0c7f864036e80f1404332ff118d1ebd0e0026d284e0?d=identicon)[roiwk](/maintainers/roiwk)

---

Top Contributors

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

---

Tags

sdkanalyticsopen-apiumeng

### Embed Badge

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

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

###  Alternatives

[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

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

PHPackages © 2026

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