Download the PHP package vrobin/calendar without Composer

On this page you can find all versions of the php package vrobin/calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package calendar

Calendar

中国农历转换,生肖星座


Packagist PHP Version Support Packagist License Build Status

安装

composer require vrobin/calendar

使用

创建对象

使用公历日期创建对象 日期格式参考DateTime

使用农历日期创建对象 第四个参数为是否为闰月

获取属性

获取公历数据

solarDate 方法返回一个DateTime对象,可使用format方法输出内容

例:

获取农历数据

lunarFormat 通过格式字符串输出相应内容

输出生辰八字:

输出农历日期:

符号格式表

符号 描述 示例
y 数字年 1999
m 数字月 4
d 数字日 13
T 年天干
D 年地支
Y 中文月 正月
R 中文日 初八
S 生肖
r 月天干
s 月地支
e 日天干
a 日地支
X 星座 白羊
j 节气 白露
w 时天干
l 时地支

All versions of calendar with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vrobin/calendar contains the following files

Loading the files please wait ....