theshopdev/api-client

theshop API client for Laravel.

Maintainers

Package info

github.com/theshopdev/api-client

pkg:composer/theshopdev/api-client

Statistics

Installs: 351

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.5 2025-07-31 10:44 UTC

This package is auto-updated.

Last update: 2026-03-01 00:40:54 UTC


README

  1. composer require theshopdev/api-client
  2. Add \Theshop\ApiClient\ApiClientServiceProvider::class to config/app.php providers.
  3. Fill .env values:
THESHOP_API_KEY=
THESHOP_API_ENDPOINT=
THESHOP_CATALOG=

Usage

For single request:

$data = $this->getConnector()->send(new ProductListRequest(
    limit: 8,
    offset: 0
))->data;

For multiple async requests:

$data = $this->getConnector()->sendMultiple([
    'pages' => new ProductListRequest(
        limit: 8,
        offset: 0
    ),
    'categories' => new ProductListRequest(
        limit: 8,
        offset: 0
    )
]);