wronx / php-isan-number-validator
A simple PHP class to validate and format ISAN numbers
Installs: 1 560
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >5.4
Requires (Dev)
- php: >5.4
This package is auto-updated.
Last update: 2024-11-15 21:59:25 UTC
README
This piece of poorly written code may help you with validating and formatting ISAN Number. Or may not. I don't know, I'm a plumber, not a fortune-teller.
License:
Copyright © 2016 github.com/WRonX
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
Features:
- validating ISAN Number
- formatting ISAN Number
- ...
- PROFIT
Installation and configuration:
php composer.phar require wronx/php-isan-number-validator "dev-master"
Usage
Seriously...? OK, OK...
Validating ISAN Number
use WRonX\Utils\IsanNumberValidator; // ... $isanNumber = '0000000160aa0004W00000000f'; $isNumberValid = IsanNumberValidator::validate($isanNumber);
Formatting ISAN Number
use WRonX\Utils\IsanNumberValidator; // ... $isanNumber = '0000000160aa0004W00000000f'; $formattedIsanNumber = IsanNumberValidator::format($isanNumber);
Summary
Oh, come on, I spent enough time writing readme already...