dark-calendar / solar-history-library-php
描述
v2.0
2024-07-06 14:31 UTC
Requires
- php: >=8.0
- dark-calendar/lunar-history-library-php: 1.*@dev
- illuminate/support: >=v9.0.0
Requires (Dev)
- phpunit/phpunit: 10.1.3
README
安装
运行命令
composer require dark-calendar/solar-history-library-php
使用
创建新对象
$dateSolar = new DarkCalendar\SolarDate\SolarDateService();
或使用外观
\DarkCalendar\SolarDate\SolarDate::class;
在外观中,您可以静态访问类方法。
方法
日期
array|string date($format, string|int $timestamp = '', string|int $none = '', string $time_zone = 'Asia/Tehran', string $tr_num = 'fa')