timwassenburg / laravel-dutch-phone-number-validator
Validate if the given input is a valid Dutch phone number
Installs: 4 865
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2024-12-22 12:52:32 UTC
README
Table of Contents
Installation
Run composer require to install the package.
composer require timwassenburg/laravel-dutch-phone-number-validator
Usage
Add the dutch-phone-number
rule to the field you want to validate.
'phone' => 'required|dutch-phone-number'
Translations
Publish the translations with the following command.
php artisan vendor:publish --provider="TimWassenburg\DutchPhoneNumberValidator\PhoneValidatorServiceProvider" --tag="translations"
You can now add or update translations in the resources/lang/vendor/dutch-phone-number
folder.
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
The MIT License (MIT). Please see License File for more information.