Laravel Packages

Squeaky

Published
Squeaky image

Created by Jon Purvis, Squeaky is powered by Profanify, which we recently covered. Based on user feedback, he has extracted a standalone validation rule, making Squeaky a powerful tool right from the start. It also supports multiple locales, not just English.

Install this package using Composer:

composer require jonpurvis/squeaky

Example

namespace App\Http\Controllers
 
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use JonPurvis\Squeaky\Rules\Clean;
 
class EventController extends Controller
{
public function store(Request $request): RedirectResponse
{
$request->validate([
'name' => ['required', 'string', 'max:255', new Clean],
'description' => ['required', 'string', new Clean],
'event_date' => 'required|date'
]);
 
// ...
 
return redirect('/events');
}
}

If your application supports multiple languages, you can pass additional locales to the rule to accommodate them.

use JonPurvis\Squeaky\Rules\Clean;
 
'name' => ['required', 'string', 'max:255', new Clean(['en', 'pt_BR'])],

Learn more about this package and view the source code on GitHub.

Yannick Lyn Fatt photo

Staff Writer at Laravel News and Full stack web developer.

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Image Dominant Color and HEIC Support in Laravel 13.24 image

Image Dominant Color and HEIC Support in Laravel 13.24

Read article
Official Laravel Zed Extension: LSP for PHP & Blade image

Official Laravel Zed Extension: LSP for PHP & Blade

Read article
Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD image

Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD

Read article
PhpStorm 2026.2 Released image

PhpStorm 2026.2 Released

Read article
Laravel Doctor: Diagnose Your App With One Artisan Command image

Laravel Doctor: Diagnose Your App With One Artisan Command

Read article
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article