PHPackages                             bestshe/zhima - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bestshe/zhima

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bestshe/zhima
=============

zhima for laravel5

011[1 issues](https://github.com/bestshe/zhima/issues)PHP

Since Feb 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bestshe/zhima)[ Packagist](https://packagist.org/packages/bestshe/zhima)[ RSS](/packages/bestshe-zhima/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[zhima](https://zmmcportal.zmxy.com.cn/index.htm) for Laravel 5.\*
==================================================================

[](#zhima-for-laravel-5)

Installation
------------

[](#installation)

- Run `composer require bestshe/laravel-zhima`
- Run `php artisan vendor:publish`

Usage
-----

[](#usage)

### 授权:

[](#授权)

```
        //1:按照手机号进行授权 {"mobileNo":"15158657683"}
        //2:按照身份证+姓名进行授权 {"name":"张三","certType":"IDENTITY_CARD","certNo":"330100xxxxxxxxxxxx"}
        $request = new ZhimaAuthInfoAuthorizeRequest();
        $request->setChannel("app");
        $request->setPlatform("zmop");
        $req->setIdentityType("2");// 必要参数
        $req->setIdentityParam("{\"name\":\"张三\",\"certType\":\"IDENTITY_CARD\",\"certNo\":\"330100xxxxxxxxxxxx\"}");// 必要参数
        $req->setBizParams("{\"auth_code\":\"M_H5\",\"channelType\":\"app\",\"state\":\"商户自定义\"}");//
        $req->setChannel("app");
        $req->setPlatform("zmop");
        $url = Zmop::generatePageRedirectInvokeUrl($req)

```

### 信用评分:

[](#信用评分)

```
         $request = new ZhimaCreditScoreGetRequest();
         $request->setChannel("apppc");
         $request->setPlatform("zmop");
         $request->setTransactionId("201512100936588040000000465158");// 必要参数
         $request->setProductCode("w1010100100000000001");// 必要参数
         $request->setOpenId("268810000007909449496");// 必要参数
         $response = Zmop::execute($request);
         echo json_encode($response);

```

Config
------

[](#config)

set the options in **config/zmop.php** ,

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1862183?v=4)[chayton](/maintainers/bestshe)[@bestshe](https://github.com/bestshe)

### Embed Badge

![Health badge](/badges/bestshe-zhima/health.svg)

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

###  Alternatives

[christianessl/landmap-generation

Generate pixelated, random world maps in PHP.

173.7k](/packages/christianessl-landmap-generation)

PHPackages © 2026

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