PHPackages                             axro/shopware-oauth2-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. axro/shopware-oauth2-client

ActiveLibrary[API Development](/categories/api)

axro/shopware-oauth2-client
===========================

Shopware 6 OAuth2 API Client

3.0.0(2y ago)03.0k↓79.8%[1 PRs](https://github.com/axro-gmbh/shopware-oauth2-client/pulls)proprietaryPHPPHP &gt;=8.0

Since Apr 25Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/axro-gmbh/shopware-oauth2-client)[ Packagist](https://packagist.org/packages/axro/shopware-oauth2-client)[ RSS](/packages/axro-shopware-oauth2-client/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (9)Used By (0)

Shopware OAuth2 Client v2
=========================

[](#shopware-oauth2-client-v2)

Use it to send requests to Shopware 6 API.

Controls the authentication and renewal of the token independently.

Installation
------------

[](#installation)

Install package:

`composer require axro/shopware-oauth2-client`

Usage
-----

[](#usage)

### Requests

[](#requests)

```
use AxroShopware\Client\ShopwareClient;

// Create an instance with your credentials
$client = new ShopwareClient(
    $baseUrl, $clientId, $clientSecret
);

// add your monolog logger LoggerInterface
$client->setLogger($logger);

// send a request with the payload requested by the api.
$client->request('PATCH', '/api/_action/example_extension/update', $payload);

// to return a object instead of an array, set 4th argument to true
$client->request('PATCH', '/api/_action/example_extension/update', $payload, true);
$client->request('GET', 'api/product/', [], true);

```

### Async Requests

[](#async-requests)

```
use AxroShopware\Client\ShopwareClient;

// Create an instance with your credentials
$client = new ShopwareClient(
    $baseUrl, $clientId, $clientSecret
);

// add your monolog logger LoggerInterface
$client->setLogger($logger);

// send a request with the payload requested by the api.
foreach(something...) {
    // create $payload with your data from foreach etc.
    $client->requestAsync('PATCH', '/api/_action/example_extension/update', $payload);
}
$responses = $client->promise();

// to return objects in numeric array instead of an array, set argument to true
$responses = $client->promise(true);

```

You can use the HTTP methods: GET, POST, PATCH, PUT, DELETE

### Indexing

[](#indexing)

Indexing is set by default to "use-queue-indexing".

You can change it to synchronously or disable.

```
$client->indexing(const::INDEXING_SYNC)->requestAsync('PATCH', '/api/_action/example_extension/update', $payload);

```

Following constants are defined for sync behavior in ShopwareClient:

```
INDEXING_SYNC    => Data will be indexed synchronously
INDEXING_QUEUE   => Data will be indexed asynchronously
INDEXING_DISABLE => Data indexing is completely disabled

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance47

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Recently: every ~71 days

Total

6

Last Release

914d ago

Major Versions

2.0.5 → 3.0.02024-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ebdc2416309464c64d30646da7287dff5a2fe9e0e2a59866f1218b13e42442a?d=identicon)[axro-developer](/maintainers/axro-developer)

---

Top Contributors

[![eeromay](https://avatars.githubusercontent.com/u/56441202?v=4)](https://github.com/eeromay "eeromay (27 commits)")[![wwnorden](https://avatars.githubusercontent.com/u/40380459?v=4)](https://github.com/wwnorden "wwnorden (6 commits)")[![Necriso](https://avatars.githubusercontent.com/u/57683427?v=4)](https://github.com/Necriso "Necriso (1 commits)")

---

Tags

shopware-api

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/axro-shopware-oauth2-client/health.svg)

```
[![Health](https://phpackages.com/badges/axro-shopware-oauth2-client/health.svg)](https://phpackages.com/packages/axro-shopware-oauth2-client)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.1k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M766](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.7M7](/packages/avalara-avataxclient)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k49](/packages/civicrm-civicrm-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
