PHP Classes

PHP Cuban Personal Identification Number Parser: Parse a Cuban personal identification number

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 yet rated by the usersTotal: 18 All time: 11,324 This week: 206Up
Version License PHP version Categories
cuban-pin-parser 1.0Freeware5PHP 5, Geography, Parsers
Description 

Author

This package is specific mainly for applications used in Cuba Cuba .

This class can parse a Cuban personal identification number.

It can take a Cuban personal identification number string and parses it to extract its components.

The class returns an array that contains the birth day, the gender and the age of the person that uses this number.

In Spanish:

Pasando como parametro el numero personal de identificacion utilizado en Cuba se obtiene un array con los valores: sexo, dia, mes y aņo de nacimiento y edad.

Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 9 packages by
Country: Cuba Cuba
Age: 31
All time rank: 30508 in Cuba Cuba
Week rank: 192 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 5x

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Hello!</title>
</head>

<body>
<pre>
<?php
include 'CIman.php';
$obj=new cinspector;
$data=$obj->ci('9416026621');
?>
<h1>Parsing a cuban identification number</h1>
 <h3>Example: 9416026621</h3>
<?php echo 'Date Of Birth: '.$data['year'].'/'.$data['month'].'/'.$data['day']; ?>

<?php echo 'Age: '.$data['age']; ?>

<?php echo 'Sex: '.$data['sex']; ?>

</body>

</html>


  Files folder image Files (2)  
File Role Description
Plain text file CIman.php Class Main class
Accessible without login Plain text file Example.php Example Example script

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:18
This week:0
All time:11,324
This week:206Up