All Projects → 6tail → lunar-php

6tail / lunar-php

Licence: MIT license
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to lunar-php

chinese-calendar-golang
📅 公历, 农历, 干支历转换包, 提供精确的日历转换.
Stars: ✭ 104 (+23.81%)
Mutual labels:  lunar
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (-28.57%)
Mutual labels:  lunar
Lunar
Making games in Java is now easier than ever before!
Stars: ✭ 44 (-47.62%)
Mutual labels:  lunar
react-native-lunar-calendar
A react-native lunar calendar project for android and ios.
Stars: ✭ 25 (-70.24%)
Mutual labels:  lunar
chronos
Chronos是用于Fate起名的日历计算工具,计算(公历,农历,八字,万年历,年柱,日柱,月柱,时柱,四柱)等
Stars: ✭ 66 (-21.43%)
Mutual labels:  lunar
astro
自用天文算法,公历农历转换、八大行星位置、日出日落月出月落时间、节气物候时间等
Stars: ✭ 33 (-60.71%)
Mutual labels:  lunar
LunarCalendar
A lightweight macOS App for displaying calendar and time
Stars: ✭ 82 (-2.38%)
Mutual labels:  lunar
lunar-theme
🌓 A minimal dark and light theme for Visual Studio Code. Handpicked colours, easy on the eyes, and perfect for coding in the day/night.
Stars: ✭ 24 (-71.43%)
Mutual labels:  lunar
lunar-typescript
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
Stars: ✭ 62 (-26.19%)
Mutual labels:  lunar
lunar-javascript
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
Stars: ✭ 363 (+332.14%)
Mutual labels:  lunar

lunar License

lunar是一款无第三方依赖的日历工具,支持公历(阳历)、农历(阴历、老黄历)、佛历和道历,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。

此版本基于composer,如果您不会,可以使用单文件版本

基于php5.3开发。

English

示例

composer require 6tail/lunar-php
 
<?php
use com\nlf\calendar\Lunar;
 
$lunar = Lunar::fromYmd(1986,4,21);
echo $lunar->toFullString()."\n";
echo $lunar->getSolar()->toFullString()."\n";

输出结果:

一九八六年四月廿一 丙寅(虎)年 癸巳(蛇)月 癸酉(鸡)日 子(鼠)时 纳音[炉中火 长流水 剑锋金 桑柘木] 星期四 北方玄武 星宿[斗木獬](吉) 彭祖百忌[癸不词讼理弱敌强 酉不会客醉坐颠狂] 喜神方位[巽](东南) 阳贵神方位[巽](东南) 阴贵神方位[震](正东) 福神方位[兑](正西) 财神方位[离](正南) 冲[(丁卯)兔] 煞[东]
1986-05-29 00:00:00 星期四 双子座

文档

请移步至 http://6tail.cn/calendar/api.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].