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. [API Development](/categories/api)
4. /
5. mvenghaus/saloon-magento2-connector

ActiveLibrary[API Development](/categories/api)

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 yesterday

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 66% of packages

Maintenance35

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

615d ago

Major Versions

1.0.0 → 2.0.02024-10-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6408081?v=4)[mvenghaus](/maintainers/mvenghaus)[@mvenghaus](https://github.com/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

[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

807.1M200](/packages/saloonphp-laravel-plugin)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4346.3k](/packages/tinify-magento2)[sehrling/elasticsuite-ghost-cleaner

Magento 2 module to delete ghost indices automatically for the Smile Elasticsuite module

17100.8k](/packages/sehrling-elasticsuite-ghost-cleaner)[collab/module-speculation-rules

Magento 2 module which adds support for Speculation Rules API for instant page loads.

1011.0k](/packages/collab-module-speculation-rules)[marceloeatworld/falai-php

\#1 PHP client for the fal.ai serverless AI platform, compatible with Laravel and native PHP, built on Saloon v4

106.1k](/packages/marceloeatworld-falai-php)

PHPackages © 2026

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