PHPackages                             superb-code/module-webapi-security - 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. [Security](/categories/security)
4. /
5. superb-code/module-webapi-security

ActiveMagento2-module[Security](/categories/security)

superb-code/module-webapi-security
==================================

Web API Security

1.0.2(1y ago)02.7k↑20%proprietaryPHP

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/danilkrasnorudskyi/superb-module-webapi-security)[ Packagist](https://packagist.org/packages/superb-code/module-webapi-security)[ RSS](/packages/superb-code-module-webapi-security/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/8850f8023c5e7e8357fd3838cd92f097ed0adaff99697c8e0c3675a254967fbd/68747470733a2f2f706f7365722e707567782e6f72672f7375706572622d636f64652f6d6f64756c652d7765626170692d73656375726974792f762f737461626c65)](https://packagist.org/packages/superb-code/module-webapi-security)[![Total Downloads](https://camo.githubusercontent.com/df1fab01fdd146807ab3b54e65fb4d72a61fd1bbeb829c361c44e554999c3ce0/68747470733a2f2f706f7365722e707567782e6f72672f7375706572622d636f64652f6d6f64756c652d7765626170692d73656375726974792f646f776e6c6f616473)](https://packagist.org/packages/superb-code/module-webapi-security)[![Total Install](https://camo.githubusercontent.com/040bdd1c5ee837c30ad47034428d0c40bfb0545363737378687094773842e16d/68747470733a2f2f706f7365722e707567782e6f72672f7375706572622d636f64652f6d6f64756c652d7765626170692d73656375726974792f696e7374616c6c73)](https://packagist.org/packages/superb-code/module-webapi-security)

### Install via composer (recommend)

[](#install-via-composer-recommend)

Run the following command in Magento 2 root folder:

```
composer require superb-code/module-webapi-security
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

```

---

### Environment variables usage (app/etc/env.php)

[](#environment-variables-usage-appetcenvphp)

1. `superb/webapi_security/schema_request_processor_disabled` - disable schema generate
2. `superb/webapi_security/soap_api_disabled` - disable SOAP API
3. `superb/webapi_security/graphql_disabled` - disable GraphQL API
4. `superb/webapi_security/rest_path_filter_enabled` - enable REST API path filter
5. `superb/webapi_security/allowed_rest_path` - list of allowed paths
6. `superb/webapi_security/conditionally_allowed_rest_path` - list of allowed path based on IP or User Agent
7. `superb/webapi_security/whitelists` - IP or User Agent lists

Full example below:

```
'superb' => [
    'webapi_security' => [
        'schema_request_processor_disabled' => 1,
        'soap_api_disabled' => 1,
        'graphql_disabled' => 1,
        'rest_path_filter_enabled' => 1,
        'allowed_rest_path' => [
            'V1/stripe' => ['POST'],
            'V1/is-place-order-allowed' => ['POST'],
        ],
        'conditionally_allowed_rest_path' => [
            'V1/klaviyo/reclaim' => [
                'methods' => ['GET','POST'],
                'conditions' => [
                    'ip' => ['klaviyo_ip_whitelist', '192.168.127.12'],
                    'user_agent' => ['klaviyo_user_agent_whitelist', 'Example user agent']
                ]
            ]
        ],
        'whitelists' => [
            'klaviyo_ip_whitelist' => [
                '207.211.192.0/24',
                '207.211.193.0/24',
                '207.211.194.0/24',
                '207.211.195.0/24',
                '207.211.196.0/24',
                '207.211.197.0/24',
                '207.211.198.0/24',
                '207.211.199.0/24',
                '207.211.200.0/24',
                '207.211.201.0/24',
                '207.211.202.0/24',
                '207.211.203.0/24',
                '207.211.204.0/24',
                '207.211.205.0/24',
                '207.211.206.0/24',
                '207.211.207.0/24',
                '172.23.0.1'
            ],
            'klaviyo_user_agent_whitelist' => [
                'Klaviyo'
            ]
        ]
    ]
]

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance45

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

544d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d79eee03ea47805fedc566c30e93035ca443e39fcd4a515512fcaee32d9d376f?d=identicon)[danilkrasnorudskyi](/maintainers/danilkrasnorudskyi)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/superb-code-module-webapi-security/health.svg)

```
[![Health](https://phpackages.com/badges/superb-code-module-webapi-security/health.svg)](https://phpackages.com/packages/superb-code-module-webapi-security)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[adyen/module-payment

Official Magento2 Plugin to connect to Payment Service Provider Adyen.

1673.2M10](/packages/adyen-module-payment)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)[mage-os/module-rma

Return Merchandise Authorization

193.3k](/packages/mage-os-module-rma)[graycore/magento2-graphql-introspection-cache

1017.3k](/packages/graycore-magento2-graphql-introspection-cache)[graycore/magento2-graphql-logger

118.0k](/packages/graycore-magento2-graphql-logger)

PHPackages © 2026

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