Skip to main content
Back to packages
342 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

Laravel 13 Eloquent: Expert Level

41 lessons
1 h 34 min

How to Build Laravel 13 API From Scratch

30 lessons
1 h 23 min

How to Structure Laravel 13 Projects

16 lessons
1 h 32 min read