digitonic / validation
A Laravel custom validation package with some out of the box validators.
Installs: 2 513
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- php: ^7.2|^8.0
- giggsey/libphonenumber-for-php: 8.*
- illuminate/support: 7.*|8.*|9.*|10.*|11.*
- league/csv: 9.*
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0|^7.0
- phpunit/phpunit: ^7.0|^8.0|^9.0
This package is auto-updated.
Last update: 2024-10-29 15:58:17 UTC
README
This package will provide some custom validation out of the box in one single package. Using a configuration, you may create your own custom validations.
Installation
You can install the package via composer:
$ composer require digitonic/validation
Publish the config
$ php artisan vendor:publish --provider="Digitonic\Validation\ValidationServiceProvider"
Validators keys
Allowed Recipients
This validator will check for the validity of a given mobile phone number in a configured country.
allowed_recipients
CSV
This validator will check the contents of a given CSV has at least one valid row.
csv
Phone Number Index
This validator will check the contents of a passed CSV file for a given key and validate that this value is a valid mobile phone number within a configured country.
phone_number_index
Password Validation
Check to ensure a validated string contains one or more uppercase characters.
has_uppercase
Check to ensure a validated string contains one or more lowercase characters.
has_lowercase
Check to ensure a validated string contains one or more numeric characters.
has_numeric
Check to ensure a validated string contains one or more special characters.
has_special
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email steven@digitonic.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.