PHPackages                             zh-mead/xmnk-bike-control-shandong - 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. zh-mead/xmnk-bike-control-shandong

ActiveLibrary

zh-mead/xmnk-bike-control-shandong
==================================

Package description here.

v1.0.4(2y ago)033MITPHP

Since Jul 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zh-mead/xmnk-bike-control-shandong)[ Packagist](https://packagist.org/packages/zh-mead/xmnk-bike-control-shandong)[ RSS](/packages/zh-mead-xmnk-bike-control-shandong/feed)WikiDiscussions shandong Synced 1mo ago

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

 xmnk-bike-control
===================

[](#-xmnk-bike-control-)

 .

Installing
----------

[](#installing)

### 方式一

[](#方式一)

```
$ composer require zh-mead/xmnk-bike-control-shandong -vvv
```

### 方式二

[](#方式二)

声明自动加载 接下来我们需要在 composer.json 中声明包自动加载的命名空间

```
{
    .
    .
    .
    "autoload": {
        "psr-4": {
            "ZhMead\\XmnkBikeControl\\": "./src/"
        }
    },
    .
    .
    .
}

```

Usage
-----

[](#usage)

```
$config = [
    'registerGateways' => [
        'tbit' => [
            'registerAddress' => '127.0.0.1:12238'
        ],
        'xiaoan' => [
            'registerAddress' => '127.0.0.1:12238'
        ]
    ],
    'numGatewayMaps' => [
        DeviceMap::NO,
        DeviceMap::TBit,
        DeviceMap::NO,
        DeviceMap::XiaoAn,
    ],
    'defaultGateway' => DeviceMap::TBit,
    'redis' => [
        'host' => '127.0.0.1',
        'port' => 6379,
        'password' => '',
        'database' => 3
    ],
    'isSyncCmd' => false,
    'isAutoBikeStatusSync' => true,
    'addressesCacheDisable' => false,
    'userRoleTag' => UserRoleMap::USER,
    'isDev' => true,
];

$bikeControl = new XmnkBikeControl\BikeControl($config);
$bikeControl->device(DeviceMap::XiaoAn)->bell('2011550024');//寻铃
$bikeControl->device(DeviceMap::XiaoAn)->open('2011550024',[
    'id' => $order->id,//订单id
    'bike_id' => $order->bike_id,//车辆id
    'area_id' => $order->area_id//车辆所在区域id
]);//开锁
$bikeControl->device(DeviceMap::XiaoAn)->closeLock('2011550024');//关锁
$bikeControl->device(DeviceMap::XiaoAn)->temporaryCloseLock('2011550024');//临时关锁
$bikeControl->device(DeviceMap::XiaoAn)->temporaryOpenLock('2011550024');//临时开锁
$bikeControl->device(DeviceMap::XiaoAn)->openBatteryLock('2011550024');//打开电池仓
$bikeControl->device(DeviceMap::XiaoAn)->outAreaPlayVideo('2011550024');//播放超区语音【中继端会自动播放】
$bikeControl->device(DeviceMap::XiaoAn)->playVideo('2011550024','01');//播放语音【01:语音指令】
$bikeControl->device(DeviceMap::XiaoAn)->outAreaLoseElectric('2011550024');//超区失能【中继端会自动播放】
$bikeControl->device(DeviceMap::XiaoAn)->outAreaGetElectric('2011550024');//进区加电【中继端会自动播放】
$bikeControl->device(DeviceMap::XiaoAn)->closeLowElectricLimit('2011550024');//关闭低电量限制
$bikeControl->device(DeviceMap::XiaoAn)->rebootBox('2011550024');//重启中控
$bikeControl->device(DeviceMap::XiaoAn)->nowBikeLocation('2011550024');//立即定位
$bikeControl->device(DeviceMap::XiaoAn)->nowBikeBatteryMSG('2011550024');//立即更新电量
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.1% 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 ~5 days

Total

5

Last Release

996d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95666f768def4075873d022dc6bd83d2982db0110f22f42163ec07400c89a11f?d=identicon)[zh-mead](/maintainers/zh-mead)

---

Top Contributors

[![zh-mead](https://avatars.githubusercontent.com/u/18278066?v=4)](https://github.com/zh-mead "zh-mead (104 commits)")[![Andy009007](https://avatars.githubusercontent.com/u/102123362?v=4)](https://github.com/Andy009007 "Andy009007 (2 commits)")

### Embed Badge

![Health badge](/badges/zh-mead-xmnk-bike-control-shandong/health.svg)

```
[![Health](https://phpackages.com/badges/zh-mead-xmnk-bike-control-shandong/health.svg)](https://phpackages.com/packages/zh-mead-xmnk-bike-control-shandong)
```

PHPackages © 2026

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