PHPackages                             mvenghaus/saloon-magento2-connector - 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. mvenghaus/saloon-magento2-connector

ActiveLibrary

mvenghaus/saloon-magento2-connector
===================================

Saloon Connector for Magento 2

2.0.2(1y ago)1487MITPHPPHP ^8.2

Since May 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mvenghaus/saloon-magento2-connector)[ Packagist](https://packagist.org/packages/mvenghaus/saloon-magento2-connector)[ Docs](https://github.com/mvenghaus/saloon-magento2-connector)[ RSS](/packages/mvenghaus-saloon-magento2-connector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Saloon - Magento 2 Connector
============================

[](#saloon---magento-2-connector)

[Saloon](https://docs.saloon.dev/) - Magento 2 Connector with token handling, allowing you to easily start building your own requests. It is only working if 2FA is disabled.

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

[](#installation)

Install the package via composer:

```
composer require mvenghaus/saloon-magento2-connector
```

Usage
-----

[](#usage)

### Basic Structure

[](#basic-structure)

```
$configuration = new Configuration(...);
$connector = new ApiConnector($configuration);

$response = $connector->send(new Your_Request());
```

### Configuration - Structure

[](#configuration---structure)

```
class Configuration
{
    public function __construct(
        public string $endpoint, // https://www.your-domain.com/rest/V1/
        public string $username,
        public string $password,
        public int $tokenLifetime = 0, // admin defined token lifetime in seconds
        public ?string $authenticator = null, // saloon authenticator (serialized)
        public ?Closure $authenticatorUpdateCallback = null, // callback to save authenticator if changed
        public ?Closure $debugCallback = null // callback for debugging
    ) {
    }
}
```

### Configuration - Example

[](#configuration---example)

```
$authenticator = load_from_your_cache();

$configuration = new Configuration(
    'https://www.your-domain.com/rest/V1/',
    'USERNAME',
    'PASSWORD',
    3600,
    $authenticator,
    function (string $authenticator) {
        save_to_your_cache($authenticator);
    },
    function (PendingRequest $pendingRequest, RequestInterface $psrRequest) {
        echo $pendingRequest->getUrl() . PHP_EOL;
    }
);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~49 days

Total

4

Last Release

564d ago

Major Versions

1.0.0 → 2.0.02024-10-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/9153207646a2b8a1d57ade7c92fa6d88a826ccb115ff60ca8776b32b877245e1?d=identicon)[mvenghaus](/maintainers/mvenghaus)

---

Top Contributors

[![mvenghaus](https://avatars.githubusercontent.com/u/6408081?v=4)](https://github.com/mvenghaus "mvenghaus (4 commits)")

---

Tags

magentosaloonsaloonphpmagento2

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/mvenghaus-saloon-magento2-connector/health.svg)

```
[![Health](https://phpackages.com/badges/mvenghaus-saloon-magento2-connector/health.svg)](https://phpackages.com/packages/mvenghaus-saloon-magento2-connector)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

765.7M125](/packages/saloonphp-laravel-plugin)[markshust/magento2-module-disabletwofactorauth

The DisableTwoFactorAuth module provides the ability to disable two-factor authentication.

2282.7M6](/packages/markshust-magento2-module-disabletwofactorauth)[redchamps/module-clean-admin-menu

It will merge all third party extensions menu items to single menu item named 'Extensions'.

164416.3k](/packages/redchamps-module-clean-admin-menu)[opengento/module-gdpr

Gdpr Compliance Module for Magento 2

14481.5k](/packages/opengento-module-gdpr)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)

PHPackages © 2026

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