Skip to content

dakalab/birthday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

birthday

Validate birthday, parse the age and constellation of valid birthday.

Build Status codecov Latest Stable Version Total Downloads License

Install

composer require dakalab/birthday

Usage

use Dakalab\Birthday\Birthday;

$birthday = new Birthday('2018-12-01', 'zh');
$age = $birthday->getAge();
$constellation = $birthday->getConstellation();
$formatedDate = $birthday->format('d/m/Y'); // 01/12/2018
$normalizedDate = (string) $birthday; // 2018-12-01

About

Validate birthday, parse the age and constellation of valid birthday, support multiple languages

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages