Skip to main content
Back to packages
337 GitHub stars

Blaspsoft/blasp

View on GitHub

Description

Blasp is a profanity filter package for Laravel that helps detect and mask profane words in a given sentence.

use Blaspsoft\Blasp\Facades\Blasp;
 
$result = Blasp::check('This is a fucking sentence');
 
$result->isOffensive(); // true
$result->clean(); // "This is a ******* sentence"
$result->original(); // "This is a fucking sentence"
$result->score(); // 30
$result->count(); // 1
$result->uniqueWords(); // ['fucking']
$result->severity(); // Severity::High

Recent Courses on Laravel Daily

[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks

7 lessons
43 min read

Testing in Laravel 13 For Beginners

26 lessons
1 h 41 min read

How to Structure Laravel 13 Projects

16 lessons
1 h 32 min read

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.