Download the PHP package zh-mead/xmnk-bike-control-shandong without Composer

On this page you can find all versions of the php package zh-mead/xmnk-bike-control-shandong. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package xmnk-bike-control-shandong

xmnk-bike-control

.

Installing

方式一

方式二

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

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

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');//立即更新电量

All versions of xmnk-bike-control-shandong with dependencies

PHP Build Version
Package Version
Requires workerman/gatewayclient Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zh-mead/xmnk-bike-control-shandong contains the following files

Loading the files please wait ....