PHPackages                             maslosoft/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. maslosoft/whitelist

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

maslosoft/whitelist
===================

PHP Code White List

1.0.5(4y ago)0888[2 PRs](https://github.com/Maslosoft/Whitelist/pulls)3AGPL-3.0-onlyPHPPHP &gt;= 7.1

Since Jan 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Maslosoft/Whitelist)[ Packagist](https://packagist.org/packages/maslosoft/whitelist)[ Docs](https://maslosoft.com/whitelist/)[ RSS](/packages/maslosoft-whitelist/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (7)Versions (9)Used By (3)

[![Whitelist Logo](https://camo.githubusercontent.com/89f1f52ad544c6784036eb2b2c8aaa6f910e61fe3e9f160f4396bfae22e0c096/68747470733a2f2f6d61736c6f736f66742e636f6d2f77686974656c6973742f77686974656c6973742e737667)](https://maslosoft.com/whitelist/) [Maslosoft Whitelist](https://maslosoft.com/whitelist/)
=============================================================================================================================================================================================================================================================================================================

[](#-maslosoft-whitelist)

[*PHP Code White List*](https://maslosoft.com/whitelist/)

[![Latest Stable Version](https://camo.githubusercontent.com/c8cb5fdfcc38443f88923820667cd11f10e513479eb8b76688451db9769e8250/68747470733a2f2f706f7365722e707567782e6f72672f6d61736c6f736f66742f77686974656c6973742f762f737461626c652e737667)](https://packagist.org/packages/maslosoft/whitelist "Latest Stable Version")[![License](https://camo.githubusercontent.com/6353a8dddb3e1ec2aba39422cf35ff5aa595fae36c29e2632f04887db65f0944/68747470733a2f2f706f7365722e707567782e6f72672f6d61736c6f736f66742f77686974656c6973742f6c6963656e73652e737667)](https://packagist.org/packages/maslosoft/whitelist "License")[ ![Scrutinizer Code Quality](https://camo.githubusercontent.com/8feeb4f00b8210a2c827d3c5aa867cc4fca3ceed939c9b806ead3b51cf5e957c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d61736c6f736f66742f57686974656c6973742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Maslosoft/Whitelist/?branch=master)[ ![Code Coverage](https://camo.githubusercontent.com/2fff430a3b6469035f5fada37fa48bbe46dfbe7ef0e21604da2467548c0d071c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d61736c6f736f66742f57686974656c6973742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Maslosoft/Whitelist/?branch=master)### Quick Install

[](#quick-install)

```
composer require maslosoft/whitelist
```

### Documentation

[](#documentation)

[Full Whitelist Documentation](https://maslosoft.com/whitelist/docs/)

### Allow only necessary PHP functions

[](#allow-only-necessary-php-functions)

Whitelist allows you to define allowed PHP functions, variable, classes, and forbid the rest. By default it also forbids unsafe constructs, like `eval`, variable variables names, variable methods names.

Whitelist
=========

[](#whitelist)

PHP Code whitelister

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~350 days

Total

6

Last Release

1502d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514135.1M626](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k42](/packages/ecotone-ecotone)[civicrm/civicrm-core

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

751284.3k37](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.9M203](/packages/illuminate-broadcasting)

PHPackages © 2026

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