PHPackages                             rtablada/profane - 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. rtablada/profane

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

rtablada/profane
================

Profanity filtering package for Laravel 4

125586[1 issues](https://github.com/rtablada/profane/issues)[1 PRs](https://github.com/rtablada/profane/pulls)PHP

Since Feb 17Pushed 10y ago2 watchersCompare

[ Source](https://github.com/rtablada/profane)[ Packagist](https://packagist.org/packages/rtablada/profane)[ RSS](/packages/rtablada-profane/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Profanity Filter
========================

[](#laravel-profanity-filter)

This package facilitates filtering profanity within your Eloquent models and your Laravel project.

Installation Using Laravel 4 Package Installer
----------------------------------------------

[](#installation-using-laravel-4-package-installer)

If you have [Laravel 4 Package Installer](https://github.com/rtablada/package-installer) installed you can install Profane by running `php artisan package:install rtablada/profane`.

Installing Using Composer
-------------------------

[](#installing-using-composer)

If you do not have Pacakge Installer, you can install Profane by running `composer require rtablada/profane` and then modifying your `providers` in `app/config/app.php` to include `'Rtablada\Profane\FilterServiceProvider'` and your `aliases` to include `'Filter' => 'Rtablada\Profane\Facades\Filter'` and replace your existing Eloquent alias with: `'Eloquent' => 'Rtablada\Profane\Model'`.

Using The Filter
----------------

[](#using-the-filter)

The filter is quite simple and can be used at any time using the facade like this:

```
$result = Filter::filter($input);
```

By default the filter erases all profane words. Alternatively, you can replace profane words using the second argument:

```
$result = Filter::filter($input, '***');
```

Using Filtered Models
---------------------

[](#using-filtered-models)

With the standard installation process, all classes that extend the Eloquent Facade will now extend filtered models. This will retain all functionality with the added benifit of allowing you to specify filtered fields with a `protected $filtered` parameter. You can also define the replacement string used in the filter with a `protected $filterReplace`. An example model could be:

```
class Post extends Eloquent
{
	protected $filtered = array(
		'title',
		'body',
	);

	protected $filterReplace = '***';
}
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (15 commits)")

### Embed Badge

![Health badge](/badges/rtablada-profane/health.svg)

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

###  Alternatives

[rosell-dk/dom-util-for-webp

Replace image URLs found in HTML

2417.7k5](/packages/rosell-dk-dom-util-for-webp)[happyculture/combawa

Projects builder

1422.1k](/packages/happyculture-combawa)

PHPackages © 2026

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