zhukmax / relative-date
Relative date php-helper.
dev-master
2017-02-27 13:17 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2024-12-06 05:33:16 UTC
README
Relative date php-helper.
Install
composer require zhukmax/relative-date
Usage
<?php // Russian date $relativeDate = RelativeDate::get(mktime(0, 0, 0, 2, 1, 2015), 'ru'); // English is default $relativeDate = RelativeDate::get(mktime(0, 0, 0, 2, 1, 2015)); // Use string date $relativeDate = RelativeDate::get('10 September 2000');
Languages
This package has some languages:
- English (default)
- Russian
- French
You can use your language array.
Licence
The Apache License Version 2.0. Please see License File for more information.