PHPackages                             msp/apienhancer - 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. msp/apienhancer

ActiveMagento2-module[API Development](/categories/api)

msp/apienhancer
===============

1.0.3(7y ago)8265.5k29[3 PRs](https://github.com/magespecialist/m2-MSP_APIEnhancer/pulls)OSL 3.0PHPPHP ^7.0|^7.1

Since Jun 12Pushed 5y ago16 watchersCompare

[ Source](https://github.com/magespecialist/m2-MSP_APIEnhancer)[ Packagist](https://packagist.org/packages/msp/apienhancer)[ RSS](/packages/msp-apienhancer/feed)WikiDiscussions master Synced 1mo ago

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

MSP APIEnhancer
===============

[](#msp-apienhancer)

This module replaces **MSP\_APIBoost**.

### Install procedure

[](#install-procedure)

```
composer require msp/apienhancer
php bin/magento setup:upgrade

```

**NOTE**: If you are using Varnish see below

### Features

[](#features)

- Internal cache support
- Varnish external support (see below)
- Products and categories automatic invalidation
- Support for group based catalog rules

### Magento2 REST-API features enhancements:

[](#magento2-rest-api-features-enhancements)

- FIX: Catalog rules are not applied in REST-API

**Varnish users should read below**

Why you may need it?
--------------------

[](#why-you-may-need-it)

While using Magento 2 REST API for decoupled frontend (e.g.: a ReactJS or AngularJS frontends), you need to access catalog, search and products.

Every time you perform a REST API call, no matter if you have a FPC configured or not, Magento will **compute your request as it was the first one**.

With this simple module you will be able to cache **API REST requests** and get up to a 50x performance boost.

Important: For Varnish users
----------------------------

[](#important-for-varnish-users)

In order to correctly handle cache invalidation and contents variation you should apply small variations to your varnish VCL file.

Add the following code to your Varnish configuration file at the beginning of **vcl\_hash** section:

`hash_data(regsub(std.tolower(req.http.Authorization), "^bearer\s\x22(\w+?):\w+?\x22", "\1"));`

Implementation example:

```
import std
...
sub vcl_hash {
    hash_data(regsub(std.tolower(req.http.Authorization), "^bearer\s\x22(\w+?):\w+?\x22", "\1"));
    ...
}
...

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~156 days

Total

4

Last Release

2792d ago

PHP version history (2 changes)1.0.0PHP ~7.0.0

1.0.1PHP ^7.0|^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3977029?v=4)[MageSpecialist](/maintainers/magespecialist)[@magespecialist](https://github.com/magespecialist)

---

Top Contributors

[![phoenix128](https://avatars.githubusercontent.com/u/10189093?v=4)](https://github.com/phoenix128 "phoenix128 (3 commits)")[![slackerzz](https://avatars.githubusercontent.com/u/3061752?v=4)](https://github.com/slackerzz "slackerzz (1 commits)")

### Embed Badge

![Health badge](/badges/msp-apienhancer/health.svg)

```
[![Health](https://phpackages.com/badges/msp-apienhancer/health.svg)](https://phpackages.com/packages/msp-apienhancer)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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