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(3y 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 1mo 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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

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

1451d 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

[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.9k17](/packages/civicrm-civicrm-core)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k134](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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