Download the PHP package evo-mark/evo-laravel-profanity without Composer
On this page you can find all versions of the php package evo-mark/evo-laravel-profanity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package 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
You can install the package via composer:
You can publish the config file with:
Finally, to download/update the profanity definitions, add this to the `composer.json` file at the root of your project:
> [!CAUTION]
> Failure to add the above will result in validation not running with the rule.
## 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.
On failure, the validator will return the message in your `lang/{locale}/validation` file under the `profanity` property.
## 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.
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Licence
The MIT Licence (MIT). Please see [Licence File](LICENCE.md) for more information.
All versions of evo-laravel-profanity with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/contracts Version ^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
wikimedia/aho-corasick Version ^2.0
illuminate/contracts Version ^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
wikimedia/aho-corasick Version ^2.0
The package evo-mark/evo-laravel-profanity contains the following files
Loading the files please wait ...
