PHP Classes

PHP BIC Validation: Validate the owner of a container with a BIC code

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 247 All time: 7,963 This week: 71Up
Version License PHP version Categories
vco 1.0Free for non-comm...4.0Algorithms, Validation
Description 

Author

This class can validate the owner of a container with a BIC code.

It takes the BIC code of a container being shipped and computes the check digit.

The class can display a message showing whether the verification code is correct with a link to the site of BIC (Bureau International des Containers et du Transport Intermodal) to show who is the container owner.

Innovation Award
PHP Programming Innovation award nominee
September 2014
Number 9


Prize: One downloadable copy of CodeLobster Professional
BIC is an ISO standard that defines the format of codes used to identify cargo containers being transported world wide.

This class can validate cargo container codes according to the ISO BIC standard.

Manuel Lemos
Picture of Roberto Aleman
  Performance   Level  
Name: Roberto Aleman <contact>
Classes: 19 packages by
Country: Venezuela Venezuela
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Example

<?php
require("class_vco.php");

if(isset(
$_POST['check']))
    {
    if (
$_POST['check']!= "")
    {

       
$check = new validate_container_owner();
       
$check->calculate($_POST[check]);
    }
    else
    {
            echo
"<h2>the value is null!, try again!</h2>";
    }
         }
?>
<style type="text/css">
body,td,th,h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-align:center;
}
</style>

<div style='text-align:center'>
<form action="example.php" method="post" name="check" target="_self">
<input name="check" type="text" size="11" maxlength="11" />
<input name="" type="submit" value="submit" />
</form>
</div>


  Files folder image Files (4)  
File Role Description
Plain text file class_vco.php Class main class
Image file example Screen example
Plain text file example.php Example example
Image file example_data01 Screen example_data01

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:247
This week:0
All time:7,963
This week:71Up