ronanguilloux / IsoCodes

PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries
GNU General Public License v3.0
792 stars 77 forks source link

+1 UK PostCode, UK Tax Code #41

Closed ronanguilloux closed 8 years ago

ronanguilloux commented 9 years ago

http://www.braemoor.co.uk/software/vat.shtml

soullivaneuh commented 9 years ago

UK vat should be on Vat validator, isn't it?

For post code, please see #38 before. :+1:

barryvdh commented 9 years ago

It is: 'GB' => '\d{9}|\d{12}|(GD|HA)\d{3}',

You could also validate by api: https://github.com/viruschidai/validate-vat

soullivaneuh commented 9 years ago

Title should be updated, post code is already implemented here: https://github.com/ronanguilloux/IsoCodes/blob/c027b47e2738bdb68308b2963f5d850b5e94dfd0/src/IsoCodes/ZipCode.php#L77

ronanguilloux commented 8 years ago