{"repo":"Blaspsoft/blasp","free":true,"listed":false,"github":"https://github.com/Blaspsoft/blasp","clone":"git clone https://github.com/Blaspsoft/blasp.git","description":"🤬 🚫 Blasp is a profanity filter package for Laravel that helps detect and mask profane words in a given sentence. It offers a robust set of features for handling variations of offensive language, including substitutions, obscured characters, and doubled letters.","language":"PHP","stars":351,"topics":["profanity-check","profanity-detection","profanity-filter","profanity-validator","laravel","php","content-moderation","profanity-library","profanityfilter"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Blasp - Advanced Profanity Filter for Laravel Blasp is a powerful, extensible profanity filter for Laravel. Version 4 is a ground-up rewrite with a driver-based architecture, severity scoring, masking strategies, Eloquent model integration, and a clean fluent API. Features - Driver Architecture — regex (detects obfuscation, substitutions, separators), pattern (fast exact matching), phonetic (catches sound-alike evasions), or pipeline (chains multiple drivers together). Extend with custom drivers. - Multi-Language — English, Spanish, German, French with language-specific normalizers. Check one, many, or all at once. - Severity Scoring — Words categorised as mild/moderate/high/extreme. Filter by minimum severity and get a 0-100 score. - Masking Strategies — Character mask ( , # ), grawlix ( !@#$% ), or a custom callback. - Eloquent Integration — Blaspable trait auto-sanitizes or rejects profanity on model save. - Middleware — Reject or sanitize profane request fields with configurable severity. - Validation Rules — Fluent validation rule with language, severity, and score threshold support. - Testing Utilities — Blasp::fake() for test doubles with assertions. - Events — ProfanityDetected , ContentBlocked , and ModelProfanityDetected . Requirements - PHP 8.2+ - Laravel 8.0+ Installation Publish configuration: Quick Start Fluent API All builder methods return a PendingCheck and can be chained: Result Object The Result object is returned by every check() call: Method Returns Descr","default_branch":null,"files":null,"tree":[],"storefront":"/r/Blaspsoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Blaspsoft/blasp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}