PHP code example of ronanguilloux / isocodes
1. Go to this page and download the library: Download ronanguilloux/isocodes library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ronanguilloux / isocodes example snippets
// Sending letters to the Labrador Islands ?
$isCanadian = ZipCode::validate('A0A 1A0', 'CA');
// Checking out your e-commerce shopping cart?
$isBankable = CreditCard::validate('12345679123456');
// Transferring money worldwide?
$isSwiftBic = SwiftBic::validate('CEDELULLXXX');
// Paying your taxes in Madrid?
$isTaxableInSpain = Nif::validate('A999999L');
// Receiving containers from Port of Shanghai?
$isShippingContainerCode = Sscc::validate('806141411234567896');
// Publishing books?
$isPublished = Isbn::validate('2-2110-4199-X')
// Trading items with GTIN barcodes in GS1 system?
$isBarcode = Ean13::validate('4719512002889')
// Calling phone numbers in Palo Alto?
$isPhonable = PhoneNumber::validate('+1-650-798-2800', 'US')
// Buying Apple stocks?
$isISIN = Isin::validate('US0378331005'); // Apple Inc. (AAPL)
// Trading Apple products?
$isCUSIP = Cusip::validate('037833100'); // Apple Inc. (AAPL)
// Checking your iPhone device is valid?
$isDevice = Imei::validate('352066060926230');
// Selling your Honda Civic?
$isVin = VinNA::validate('1HGBH41JXMN109186');