PHPackages                             roottusk/slangdetect - 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. roottusk/slangdetect

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

roottusk/slangdetect
====================

PHP Slang Detection Library for Web Applications

1.1.4(7y ago)341[1 PRs](https://github.com/roottusk/slangdetect/pulls)MITPHPPHP ^7.0

Since Jan 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/roottusk/slangdetect)[ Packagist](https://packagist.org/packages/roottusk/slangdetect)[ Docs](https://ctzlab.com)[ RSS](/packages/roottusk-slangdetect/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)DependenciesVersions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/50f8f7763ec95c46f2f60c182ed9bf22810b8ea1c0ec2852c353ebdefa4c8d0e/68747470733a2f2f7472617669732d63692e6f72672f726f6f747475736b2f736c616e676465746563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/roottusk/slangdetect)[![MIT licensed](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/roottusk/slangdetect/LICENSE)[![Version](https://camo.githubusercontent.com/a0edc151cf753f163ed62b53188634aa845b6bc869973651386a14d0be39749b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e342d6f72616e67652e737667)](https://packagist.org/packages/roottusk/slangdetect)

SlangDetect
===========

[](#slangdetect)

A Slang Detect Library in PHP which can be reused to filter out any badwords or check from a chunk of text.

Installation
============

[](#installation)

```
composer require roottusk/slangdetect
```

Usage
=====

[](#usage)

```
require "lib/init.php";

ContainsBadWord($String)          //Returns count of bad words

IsBadWord($String)                //Returns boolean

StripBadWords($String,$Char)      //Strips Bad words from the provided text with given character.

StripOneWord($String,$Word,$Char) //Strips all the occurences of the provided word in the given text with given character
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

6

Last Release

2677d ago

PHP version history (2 changes)1PHP ^5.3

1.1.3PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ebae81764cc5c564057a67a298842efebd0c6628a1c9e109e4de0440e03d8d7?d=identicon)[roottusk](/maintainers/roottusk)

---

Top Contributors

[![roottusk](https://avatars.githubusercontent.com/u/7100634?v=4)](https://github.com/roottusk "roottusk (45 commits)")

---

Tags

detectbadwordsslangcusswordbadword detect

### Embed Badge

![Health badge](/badges/roottusk-slangdetect/health.svg)

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

###  Alternatives

[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[patrickschur/language-detection

A language detection library for PHP. Detects the language from a given text string.

8513.2M18](/packages/patrickschur-language-detection)[jaybizzle/laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

3232.6M17](/packages/jaybizzle-laravel-crawler-detect)[unicodeveloper/laravel-identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

19322.0k](/packages/unicodeveloper-laravel-identify)[gnugat/nomo-spaco

Displays the declared fully qualified classnames of a project

25170.7k5](/packages/gnugat-nomo-spaco)[consoletvs/identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

2775.4k6](/packages/consoletvs-identify)

PHPackages © 2026

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