insectaio / barqouq
Barqouq storefront gRPC client SDK
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/insectaio/barqouq
Requires
- google/protobuf: ^4.31
- grpc/grpc: ^1.57
- insectaio/common: ^1.0
This package is not auto-updated.
Last update: 2026-01-02 19:21:28 UTC
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