PHPackages                             evo-mark/evo-laravel-profanity - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. evo-mark/evo-laravel-profanity

ActiveLibrary[Testing &amp; Quality](/categories/testing)

evo-mark/evo-laravel-profanity
==============================

Use Pest's profanity wordlist in your validator

v1.2.0(1mo ago)018MITPHPPHP ^8.2CI passing

Since Nov 2Pushed 1mo agoCompare

[ Source](https://github.com/evo-mark/evo-laravel-profanity)[ Packagist](https://packagist.org/packages/evo-mark/evo-laravel-profanity)[ Docs](https://github.com/evo-mark/evo-laravel-profanity)[ GitHub Sponsors](https://github.com/craigrileyuk)[ RSS](/packages/evo-mark-evo-laravel-profanity/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (6)Used By (0)

 [    ![evoMark company logo](https://camo.githubusercontent.com/0ee00c831e18d82e5d32990e52b0b08b13c97ff2374478eef348c17bd3485c3c/68747470733a2f2f65766f6d61726b2e636f2e756b2f77702d636f6e74656e742f75706c6f6164732f7374617469632f65766f6d61726b2d6c6f676f2d2d6c696768742e737667)  ](https://evomark.co.uk)

 [![Build status](https://camo.githubusercontent.com/e2644120b9c5e54380fd84335eeef83b531aa9a4d4e52de8c5349c678c484416/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65766f2d6d61726b2f65766f2d6c61726176656c2d70726f66616e6974793f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/evo-mark/evo-laravel-profanity) [![Total Downloads](https://camo.githubusercontent.com/0d51e75b2e0d9d2f3541fde9bc663b2b62b15bfb567bc899569e8e4975b9e3f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65766f2d6d61726b2f65766f2d6c61726176656c2d70726f66616e697479)](https://packagist.org/packages/evo-mark/evo-laravel-profanity) [![Licence](https://camo.githubusercontent.com/2e424ed59998fb7ad71dae0761f2680c2076b50c3c44d32e9d4119ac562eb919/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f65766f2d6d61726b2f65766f2d6c61726176656c2d70726f66616e697479)](https://packagist.org/packages/evo-mark/evo-laravel-profanity)

Evo Laravel Profanity
=====================

[](#evo-laravel-profanity)

This package provides a `profanity` validation rule that draws on the words made available in the Pest Profanity package.

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

[](#installation)

You can install the package via composer:

```
composer require evo-mark/evo-laravel-profanity
```

You can publish the config file with:

```
php artisan vendor:publish --tag="evo-laravel-profanity-config"
```

Finally, to download/update the profanity definitions, add this to the `composer.json` file at the root of your project:

```
"scripts": {
    "post-autoload-dump": [
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
        "@php artisan profanity:update"
    ],
}
```

Caution

Failure to add the above will result in validation not running with the rule.

Usage
-----

[](#usage)

The validator uses your current locale for determining which profanity words to check against. Alternatively, you can set this manually in your config file. See the [Pest repository](https://github.com/pestphp/pest-plugin-profanity/tree/HEAD/src/Config/profanities) for available locales.

To use the validator, simply include the `profanity` rule in your ruleset.

You can include/exclude additional words by publishing the config and adding them there, e.g.

```
return [
    'includingWords' => [
        'en' => ['soccer']
    ],
    'excludingWords' => [
        'en' => []
    ]
];
```

On failure, the validator will return the message in your `lang/{locale}/validation` file under the `profanity` property.

```
public function store(Request $request)
{
    $validated = $request->validate([
        'email' => ['required', 'string', 'email'],
        'first_name' => ['required', 'string', 'profanity'],
    ]);
}
```

Support Open-Source Software
----------------------------

[](#support-open-source-software)

We're providing this package free-of-charge. However, all development and maintenance costs time, energy and money. So please help fund this project if you can.

[![](https://camo.githubusercontent.com/e196e128a01f6cfb1d468f663d20df05e2255ba345df79f5e343e78fb753a673/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d47697448756225323053706f6e736f72732d6661666266633f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/sponsors/craigrileyuk)[![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/craigrileyuk)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Licence
-------

[](#licence)

The MIT Licence (MIT). Please see [Licence File](LICENCE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~34 days

Total

5

Last Release

53d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f42ee39ec10e8f4b3552a78ea78628acef13e9772bed852baa186e97bde7748?d=identicon)[evomark](/maintainers/evomark)

---

Top Contributors

[![craigrileyuk](https://avatars.githubusercontent.com/u/68274157?v=4)](https://github.com/craigrileyuk "craigrileyuk (12 commits)")

---

Tags

pestlaravelfilterprofanitycensorevo-markswearingcursingexpletives

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/evo-mark-evo-laravel-profanity/health.svg)

```
[![Health](https://phpackages.com/badges/evo-mark-evo-laravel-profanity/health.svg)](https://phpackages.com/packages/evo-mark-evo-laravel-profanity)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-visit

Quickly visit any route of your Laravel app

15614.6k](/packages/spatie-laravel-visit)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17649.9k](/packages/lacodix-laravel-model-filter)[jonpurvis/squeaky

A Laravel Validation Rule to Help Catch Profanity.

706.0k](/packages/jonpurvis-squeaky)[michiruf/laravel-http-automock

Automatically mock http requests when testing

161.0k](/packages/michiruf-laravel-http-automock)

PHPackages © 2026

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