Download the PHP package quebecstudio/safename without Composer
On this page you can find all versions of the php package quebecstudio/safename. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quebecstudio/safename
More information about quebecstudio/safename
Files in quebecstudio/safename
Package safename
Short Description Laravel validation rule to protect against reserved usernames and words
License MIT
Informations about the package safename
Laravel SafeName
A Laravel validation package to prevent the use of reserved words in usernames or other fields.
Support for Ukraine and Call for Solidarity 🇺🇦
Québec Studio supports Ukraine and its people in their quest for peace, freedom, and sovereignty.
If you do not support the Ukrainian people in this unjust war they never wanted, we kindly ask you not to use our software, as it is intended for those who wish to be on the right side of history.
Features
- Exact word matching (e.g.,
adminwould block onlyadmin) - Partial word matching (e.g.,
adminwould blockadministrator,superadmin, etc.) - Multilingual support (English and French included)
- Configurable reserved word lists
- Support for Laravel 11.x
Installation
Configuration
Publish the config and translation files:
Reserved Words Configuration
Edit config/safename.php to customize your reserved words:
Usage
Using the Rule Object
Using the Rule String
Command Line Validation
The package includes an artisan command to test usernames:
Translations
The package includes English and French translations. You can override them by publishing the language files and editing them in lang/vendor/safename/.
Testing
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.