Download the PHP package yue/yeararound without Composer
On this page you can find all versions of the php package yue/yeararound. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yue/yeararound
More information about yue/yeararound
Files in yue/yeararound
Download yue/yeararound
More information about yue/yeararound
Files in yue/yeararound
Vendor yue
Package yeararound
Short Description Parse any month in any language then get season name
License MIT
Package yeararound
Short Description Parse any month in any language then get season name
License MIT
Please rate this library. Is it a good library?
Informations about the package yeararound
Year-Around
- Support English, Chinese, Japanese, French, Germany and Spanish
- 支持自动输出 中/英/日/德/法/西 的月份与季节
- Support Constellations
- 支持根据日期获取星座 可输出每个月可能的星座
- Parse any month in any language is the start or end of a season.
- 解析任意给定的日期来判定是否为一年中的某个季节的开始和结束
- When a year is not start from January, such as a Financial Year in Australia
- 方便的处理那些不是从一月开始的年的情况 比如财政年度可能是从7月份开始
- Configurations in .env file, compatible with Laravel framework
- 可以在 .env 文件中灵活定义配置参数 可以在Laravel中直接使用
Installation
With Composer
How to Use 使用说明
Global configurations in flexible 灵活的自动配置 兼容Laravel
- YEAR_AROUND_START_MONTH=7 // 全局配置以7月份作为起始年 默认或缺失此配置时 起始月份为1月
- YEAR_AROUND_HEMISPHERE=1 // 在北半球使用; 南半球使用设置为2 则季节会反转
- YEAR_AROUND_FORMAT_SEPARATOR="-" // 年月之间的分隔符
- YEAR_AROUND_LANGUAGE="EN" // Default Language: English; Support CN/ES/FR/DE/JP 默认语言英语
Year, Season and Month 年月日
Constellations 星座的获取
Season start/end 判断是否季度开始/结束月份
Year start/end 判断是否年度开始/结束月份
- It refers to the configured YEAR_AROUND_START_MONTH; By default: 1 (January)
- 将根据在配置文件中的 YEAR_AROUND_START_MONTH 项来判定年度的起始 默认为1
Test
- composer test
- 运行 composer test 命令即可
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
phpunit
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All versions of yeararound with dependencies
PHP Build Version
Package Version
Requires
nesbot/carbon Version
^1.36.1
The package yue/yeararound contains the following files
Loading the files please wait ....