PHP Classes

File: composer.json

Recommend this page to a friend!
  Packages of Pierre-Henry Soria   PHP Not Allowed   composer.json   Download  
File: composer.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Not Allowed
Detect and filter unwanted information
Author: By
Last change: Use backed enum in combination with `match()` to get rid of `switch` statement

These changes require now PHP 8.1 or higher as enums are available only since PHP 8.1+
Upgrade PHPUnit to v9.5
Composer: Add keywords
Update minimum required PHP version to v8
Update package description
composer.json: Add custom script command for running phpunit
Initial First Commit!

Code based was inspired from my other class, here
https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/framework/Security/Ban/Ban.class.php
Date: 8 months ago
Size: 725 bytes
 

Contents

Class file image Download
{ "name": "ph-7/notallowed", "description": "Filter profane words, usernames, spam/temporary emails, etc.", "keywords": [ "ban", "banned", "security", "not allowed", "profane", "profane words", "filter words", "filter", "word", "spam", "scam", "temporary email", "emails" ], "type": "library", "homepage": "https://ph7.me", "license": "MIT", "authors": [ { "name": "Pierre-Henry Soria", "email": "hi@ph7.me" } ], "require": { "php": ">=8.1" }, "require-dev": { "phpunit/phpunit": "^9.5" }, "autoload": { "psr-4": { "PH7\\NotAllowed\\": "src" } }, "scripts": { "test": "vendor/bin/phpunit" } }