carve / validators
There is no license information available for the latest version (dev-master) of this package.
A series of validators (mainly for use by UK systems) such as postcode, UK bank account and sort code etc.
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master
2016-10-12 13:38 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
- illuminate/validation: 4.2.*
Requires (Dev)
- phpunit/phpunit: 5.*
This package is not auto-updated.
Last update: 2024-01-20 12:59:08 UTC
README
A set of UK-centric validation rules (and maybe more) for Laravel 4.
Installation
-
Add the following to your composer.json and run
composer update
{ "require": { "carve/validators": "dev-master" } }
-
Add
Carve\Validators\ValidatorsServiceProvider
to your config/app.php
Available Rules
Postcode
'address_postcode' => 'required|postcode'
Bank Account
'bank_account_number' => 'required|bankaccount'
Sort Code
'bank_sort_code' => 'required|sortcode'
National Insurance Number
'ni'=>'required|nationalinsurance'