insectaio/barqouq
最新稳定版本:v1.0.2
Composer 安装命令:
composer require insectaio/barqouq
包简介
Barqouq storefront gRPC client SDK
README 文档
README
PHP SDK for interacting with the Barqouq storefront via gRPC. Built using protobuf definitions from buf.build/insecta/barqouq.
Installation
composer require insectaio/barqouq
Requires
insectaio/commonas a dependency.
Usage
use Barqouq\Shopfront\Product\ProductServiceClient; use Barqouq\Shopfront\Product\SearchRequest; use Grpc\ChannelCredentials; $client = new ProductServiceClient( 'api.barqouq.shop:443', ['credentials' => ChannelCredentials::createSsl()] ); $request = new SearchRequest(); $request->setClientKey('your-client-key'); $request->setSubdomain('demo'); [$response, $status] = $client->Search($request)->wait();
Protobuf Autoload
{
"autoload": {
"psr-4": {
"Barqouq\\Shopfront\\Product\\": "generated/barqouq_php/Barqouq/Shopfront/Product/",
"Barqouq\\Shared\\": "generated/barqouq_php/Barqouq/Shared/",
"GPBMetadata\\": [
"generated/barqouq_php/GPBMetadata/",
"generated/common_php/GPBMetadata/"
]
}
}
}
Requirements
- PHP 8.0+
- google/protobuf
^4.31 - grpc/grpc
^1.57
License
MIT
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-07-26