PHPackages                             jimchen/umeng-php-sdk - 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. jimchen/umeng-php-sdk

ActiveLibrary

jimchen/umeng-php-sdk
=====================

友盟 PHP SDK

v0.5-alpha(4y ago)48281MITPHPPHP &gt;=7.2

Since Mar 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JimChenWYU/umeng-php-sdk)[ Packagist](https://packagist.org/packages/jimchen/umeng-php-sdk)[ RSS](/packages/jimchen-umeng-php-sdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

 umeng-php-sdk
===============

[](#-umeng-php-sdk-)

 友盟SDK.

[![Test Status](https://github.com/JimChenWYU/umeng-php-sdk/workflows/Test/badge.svg)](https://github.com/JimChenWYU/umeng-php-sdk/actions)[![Lint Status](https://github.com/JimChenWYU/umeng-php-sdk/workflows/Lint/badge.svg)](https://github.com/JimChenWYU/umeng-php-sdk/actions)[![Latest Stable Version](https://camo.githubusercontent.com/ffd28e4743ebe7141f87f80482eebf65a64529074ffbe5c43b270d89ffa6a490/68747470733a2f2f706f7365722e707567782e6f72672f6a696d6368656e2f756d656e672d7068702d73646b2f762f737461626c652e737667)](https://packagist.org/packages/JimChenWYU/umeng-php-sdk)[![License](https://camo.githubusercontent.com/e83063f5c87091f83a994b39aa289e63190a2de8b8244e098eaa4085cb9973e6/68747470733a2f2f706f7365722e707567782e6f72672f6a696d6368656e2f756d656e672d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/JimChenWYU/umeng-php-sdk)

Installing
----------

[](#installing)

```
$ composer require jimchen/umeng-php-sdk -vvv
```

Usage
-----

[](#usage)

```
use EasyUmeng\Factory;

$app = Factory::uVerify([
    'app_key' => '1234xxxxxxxx',
    'ali_key' => '1234xxxxxxxx',
    'ali_secret' => '1234xxxxxxxx',
    'aes_key' => 'Mnfgxxxxxxxxx',

    'response_type' => 'array', // Options: 'collection', 'array', 'object', 'raw'

    /**
     * 接口请求相关配置，超时时间等，具体可用参数请参考：
     * http://docs.guzzlephp.org/en/stable/request-config.html
     *
     * - retries: 重试次数，默认 1，指定当 http 请求失败时重试的次数。
     * - retry_delay: 重试延迟间隔（单位：ms），默认 500
     * - log_template: 指定 HTTP 日志模板，请参考：https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php
     */
    'http' => [
        'max_retries' => 1,
        'retry_delay' => 500,
        'timeout' => 5.0,

        // 'base_uri' => '',
    ],

    /**
     * 日志配置
     *
     * level: 日志级别, 可选为：
     *         debug/info/notice/warning/error/critical/alert/emergency
     * path：日志文件位置(绝对路径!!!)，要求可写权限
     *
     * 如果不进行配置则会使用默认选项，可查看 EasyUmeng\Kernel\Providers\LogServiceProvider::formatLogConfig
     */
    'log' => [
        'default' => 'dev', // 默认使用的 channel，生产环境可以改为下面的 prod
        'channels' => [
            // 测试环境
            'dev' => [
                'driver' => 'single',
                'path' => '/tmp/easyumeng.log',
                'level' => 'debug',
            ],
            // 生产环境
            'prod' => [
                'driver' => 'daily',
                'path' => '/tmp/easyumeng.log',
                'level' => 'info',
            ],
        ],
    ],
]);

/**
 * 一键登录
 * @link https://developer.umeng.com/docs/143070/detail/144783
 */
$result1 = $app->info->get($token, $verifyId);
/**
 * 本机号码认证
 * @link https://developer.umeng.com/docs/143070/detail/144784
 */
$result2 = $app->verify->handle($phone, $token, $verifyId);
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/JimChenWYU/umeng-php-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/JimChenWYU/umeng-php-sdk/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

5

Last Release

1818d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20cebafc45fd6fc5f67bf655119a3b27e9b208e248f2d7f5c98fd6c0a101485b?d=identicon)[jimchen](/maintainers/jimchen)

---

Top Contributors

[![JimChenWYU](https://avatars.githubusercontent.com/u/12371374?v=4)](https://github.com/JimChenWYU "JimChenWYU (35 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jimchen-umeng-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jimchen-umeng-php-sdk/health.svg)](https://phpackages.com/packages/jimchen-umeng-php-sdk)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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