insectaio/barqouq

There is no license information available for the latest version (v1.0.2) of this package.

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

v1.0.2 2025-09-12 17:55 UTC

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/common as 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

License

MIT