PHP Classes

PHP Age Calculator Class: Calculate the years since a given date

Recommend this page to a friend!
  Info   Documentation   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: 73 All time: 10,232 This week: 206Up
Version License PHP version Categories
agecalculator 1.0The PHP License5PHP 5, Time and Date
Description 

Author

This simple class can calculate the years since a given date.

It can take a date in ISO format and compute the difference between today's date and the input date.

The class returns a JSON encoded array that contains the difference between date days in years, months, and days.

Picture of Mr. Dharmendra Kumar
  Performance   Level  
Name: Mr. Dharmendra Kumar <contact>
Classes: 8 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x

Documentation

AgeCalculator

AgeCalculator is a simple PHP class. It can calculate age and return JSON format result.

require('AgeCalculator.php'); $obj=new AgeCalculator(); $dob='05-06-2000'; echo $obj->show_my_age();


  Files folder image Files (2)  
File Role Description
Plain text file AgeCalculator.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

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  
 100%
Total:73
This week:0
All time:10,232
This week:206Up