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)02.4k↑155.6%[1 PRs](https://github.com/axro-gmbh/shopware-oauth2-client/pulls)proprietaryPHPPHP &gt;=8.0

Since Apr 25Pushed 1mo 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 today

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

39

↑

LowBetter than 87% of packages

Maintenance59

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

778d 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

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.4k282.8k4](/packages/theodo-group-llphant)

PHPackages © 2026

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