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

ActiveLibrary[API Development](/categories/api)

ranj/umeng-open-api
===================

Umeng OpenAPI,官方sdk封装.兼容php8.2+

8.2.05(2y ago)1121MITPHPPHP &gt;=7.0

Since Jan 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wpyaa/umeng-open-api)[ Packagist](https://packagist.org/packages/ranj/umeng-open-api)[ RSS](/packages/ranj-umeng-open-api/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)DependenciesVersions (7)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)

```
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, 传"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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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 ~0 days

Total

6

Last Release

914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/383a5cd5c8e3635261eaf5afab91968c694b6c38fce76ef14c680404d491adf9?d=identicon)[wpyaa](/maintainers/wpyaa)

---

Top Contributors

[![uxview](https://avatars.githubusercontent.com/u/12724881?v=4)](https://github.com/uxview "uxview (13 commits)")

---

Tags

sdkanalyticsopen-apiumeng

### Embed Badge

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

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

###  Alternatives

[lokielse/aliyun-open-api-core

The Core SDK for Aliyun OpenAPI

1073.3k17](/packages/lokielse-aliyun-open-api-core)

PHPackages © 2026

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