icetee/huawei-lte-api-php
Composer 安装命令:
composer require icetee/huawei-lte-api-php
包简介
API For huawei LAN/WAN LTE Modems written in PHP
关键字:
README 文档
README
API for Huawei LAN/WAN LTE Modems rewritten from original Python library into PHP you can use this to simply send SMS, get information about your internet usage, signal, and tons of other stuff
Tested on:
3G/LTE Routers:
- Huawei B310s-22
- Huawei B315s-22
- Huawei B525s-23a
- Huawei B525s-65a
- Huawei B715s-23c
- Huawei B528s
- Huawei B535-232
- Huawei B628-265
- Huawei B818-263
- Huawei E5186s-22a
- Huawei E5576-320
- Huawei E5577Cs-321
3G/LTE USB sticks:
(Device must support NETWork mode aka. "HiLink" version, it wont work with serial mode)
- Huawei E3131
- Huawei E3372
- Huawei E3531
5G Routers:
- Huawei 5G CPE Pro 2 (H122-373)
(probably will work for other Huawei LTE devices too)
Will NOT work on:
LTE Routers:
- Huawei B2368-22 (Incompatible firmware, testing device needed!)
- Huawei B593s-22 (Incompatible firmware, testing device needed!)
Installation
composer
$ composer require icetee/huawei-lte-api-php
Usage
<?php declare(strict_types=1); include 'vendor/autoload.php'; use Icetee\HuaweiAPI\Connection; use Icetee\HuaweiAPI\Options\ConnectionOptions; use Icetee\HuaweiAPI\Endpoints\Sms; $connectionOptions = new ConnectionOptions(); $connectionOptions->setUrl('http://192.168.8.1'); $connectionOptions->setUsername('admin'); $connectionOptions->setPassword('YOUR_PASSWORD'); $connection = new Connection($connectionOptions); $device = new Device($connection); echo json_encode($device->information());
Use with Docker (BETA)
NOTICE: It is in development. Simple calls have been resolved for now. Complex parameters such as DateTime, Enum are not resolved.
The entry point for the docker is the docker/api.php file. The first parameter is the name of the class. The second parameter is the method name of the class. Everything else is a parameter of the method.
docker run --env HUAWEI_API_PASSWORD=__PASSWORD__ --rm icetee/huawei-lte-api-php:latest Endpoints\Device informations
Examples:
- Endpoints\Device informations
- Config\Device config
- Endpoints\Sms sendSms 'a[]=+420123456788' "Hello World!"
- Endpoints\Sms sendSms 'a[]=+420123456788&a[]=+420123456789' "Hello World! Multi phone number."
Develop
docker build -f Dockerfile.dev --tag huawei-lte-api-php:latest .
docker run -it --rm -v $(pwd):/app huawei-lte-api-php:latest sh
icetee/huawei-lte-api-php 适用场景与选型建议
icetee/huawei-lte-api-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 200 次下载、GitHub Stars 达 13, 最近一次更新时间为 2022 年 01 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「Huawei LTE」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 icetee/huawei-lte-api-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 icetee/huawei-lte-api-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 icetee/huawei-lte-api-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Huawei Push SDK for Laravel
huawei cloud obs filesystem storage for laravel 5+
A PSR-7 compatible library for making CRUD API endpoints
huawei obs filesystem storage for laravel 10+
LTE3 Control Panel for Laravel Framework
Laravel Admin Lte
统计信息
- 总下载量: 200
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2022-01-01