PHPackages                             linegg/word-detector - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. linegg/word-detector

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

linegg/word-detector
====================

This is a PHP package for detecting sensitive words and shielded words. It has comprehensive functions and is easy to use.

1.0.1(4y ago)19MITPHPPHP &gt;=7.0

Since Dec 18Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

word-detector - An easy-to-use vocabulary detection class for PHP
=================================================================

[](#word-detector---an-easy-to-use-vocabulary-detection-class-for-php)

Introduction
------------

[](#introduction)

- Simple and easy to use sensitive word detection package, and supports ignoring English case.
- PHP &gt;= 7.0

Features
--------

[](#features)

- Search for the hit shielded words and calculate the number of hits
- Replace the shield word with a custom symbol, such as '\*'
- Customize invalid characters. Matching will automatically skip when these characters are encountered
- The case of English characters is ignored when matching

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

[](#installation)

```
composer require linegg/word-detector
```

A Simple Example
----------------

[](#a-simple-example)

```
