PHPackages                             majormfr/majormfr-whitelist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. majormfr/majormfr-whitelist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

majormfr/majormfr-whitelist
===========================

Library to assist whitelisting of posts and pages

v1.1(2y ago)018MITPHPPHP ^7.4 || ^8.0

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/majormfr/majormfr-whitelist)[ Packagist](https://packagist.org/packages/majormfr/majormfr-whitelist)[ RSS](/packages/majormfr-majormfr-whitelist/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

Security Gatekeeper
===================

[](#security-gatekeeper)

Library to remove unauthorized plugins. Specify url that with following route

https://{my\_domain}.com/whitelist/plugins

Above should return an array with key "whitelist\_plugins"

Install Composer in wordpress project

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

[](#installation)

To deploy this project run

```
  composer init
```

Install package

```
  composer require majormfr/majormfr-whitelist
```

In your custom plugin or functions.php file

```
    Gates::specifyWhitelistedUrl("https://{my_domains}.com/whitelist/plugins");

   $whitelistPlugins = Gates::fetch_whitelisted_plugins()['whitelist_plugins'] ?? [];
    $installed_plugins = Gates::fetch_plugins_bpd_from_db();

```

and

```
  if (count($whitelistPlugins) > 0) {
        echo count($whitelistPlugins);
        add_action('admin_init', array('Majormfr\MajormfrWhitelist\Includes\Gates\Gates', 'disableUnknownPlugins'));
    }
```

Expected array from your mentioned url should be:

```
['wordpress-importer/wordpress-importer.php','google-captcha/google-captcha.php'...]
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~1 days

Total

5

Last Release

1017d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0961156354352937b5244991793bf377b49500025debdb258fb92386c183ac6a?d=identicon)[MajorMFR](/maintainers/MajorMFR)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/majormfr-majormfr-whitelist/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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