invirtus/chirpstack3-api
Composer 安装命令:
composer require invirtus/chirpstack3-api
包简介
Chirpstack 3 PHP API
README 文档
README
ChirpStack gRPC API message and service wrappers for PHP.
Install
With composer:
composer require chirpstack/chirpstack-api
Usage
All messages, services, constants, etc. are auto-generated from the ChirpStack protobuf definitions. The result is that this package structure matches that of the protobuf definitions.
The protobuf definitions can be found here: https://github.com/chirpstack/chirpstack/tree/master/api/proto
Example
<?php namespace Test; use Chirpstack\API\ApplicationServiceClient; use Chirpstack\API\ListApplicationsRequest; use Grpc\Channel; use Grpc\ChannelCredentials; require dirname(__FILE__) . '/vendor/autoload.php'; function main() { $channel = new Channel('url', ['credentials' => ChannelCredentials::createInsecure()]); $client = new ApplicationServiceClient('url', [], $channel); $request = new ListApplicationsRequest(); $response = $client->List($request); $data = $response->wait(); print_r($data); } main();
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-19