Skip to content

A simple validator package to check if the given zipcode has a valid Dutch zipcode format

License

Notifications You must be signed in to change notification settings

timwassenburg/laravel-dutch-zipcode-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Latest Version on Packagist Total Downloads License


Table of Contents

  1. Installation
  2. Usage
  3. Translations
  4. Contributing
  5. License

Installation

Run composer require to install the package.

composer require timwassenburg/laravel-dutch-zipcode-validator

Usage

Add the dutch-zipcode rule to the field you want to validate.

'zipcode' => 'required|dutch-zipcode'

Translations

Publish the translations with the following command.

php artisan vendor:publish --provider="TimWassenburg\DutchZipcodeValidator\ZipcodeValidatorServiceProvider" --tag="translations"

You can now update the validation message in the resources/lang/vendor/dutch-zipcode 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

The MIT License (MIT). Please see License File for more information.

About

A simple validator package to check if the given zipcode has a valid Dutch zipcode format

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages