bugrov / date
Вывод даты с русским месяцем
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bugrov/date
Requires
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-09-15 04:16:11 UTC
README
Install
composer require bugrov/date
This will add the class Time.php and trait TimeTrait.php to the src/ folder
Usage
- add generated autoload.php in your current file
- create class instanse:
$date = new Bugrov\Web\Time();
- get current day:
echo $date->getCurrentDay();
- get current month in russian interpretation:
echo $date->getCurrentMonth();
- get current year:
echo $date->getCurrentYear();
- get full date (day, month, year) in russian interpretation:
echo $date->getCurrentDateRussian();