Download the PHP package gclinux/etaoism without Composer

On this page you can find all versions of the php package gclinux/etaoism. 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 etaoism

Efairy

介绍

基于PHP的算命核心 结合到web中:(thinkphp) https://github.com/gclinux/efairy

可以结合到任意PHP框架中,上面只是做个例子.

软件架构

环境要求: php5.3以上 ,建议使用PHP7 composer

安装教程

composer require gclinux/etaoism

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

文档

本程序主要是对算命核心的一个演示,核心提供下列功能.

1.精确到秒的节气识别

2.新历的八字排盘运算

3.十神运算

4.十二长生运算

5.五行生旺运算

6.常用星煞运算

7.提供合,生,克,三合,半合,对冲,刑穿的检测方法

为帮助您看懂代码,您先阅读下面资料,并熟悉五行及易经的基本内容.推荐先阅读<四柱预测>入门的读物

数字化的传统表达

大部分情况下,程序在表达上使用数字替代天干地支和五行.

五行

五行的顺序为 木火土金水,程序上用0到4表示,分别为

0-木,1-火,2-土,3-金,4-火

天干与地支

天干 : '甲', '乙', '丙', '丁', '戊', '己', '庚', '辛', '壬', '癸',分别按顺序用0到9表示

地支:'子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥' 分别按顺序用0到11表示,生肖与之一致

12长生:"生", "沐", "冠", "临", "旺", "衰", "病", "死", "墓", "绝","胎", "养" 分别用0到11表示

十神

与上面不同 十神使用二维数组成对表示

数组如下:

[['比', '劫'], ['食', '伤'], ['财', '才'],[ '杀', '官'], ['枭', '印']]

在记录表达上一般情况只记录索引,

例如比,记录索引为 [0,0],才记录为[2,0],官表示为[3,1];

大部分情况下,调用 gclinux\Etaoism\Stars::getInfo 方法,即可.

方法: getInfo($gd, $yy, $mm, $dd, $hh, $mt=0, $ss=0){

参数说明:

* @param int $gd 0男1女

* @param int $yy

* @param int $mm

* @param int $dd

* @param int $hh 时间(0-23)

* @param int $mt 分钟数(0-59),在跨节的时辰上会需要,有的排盘忽略了跨节

* @param int $ss 秒数(0-59)

* @return array

下面内容可能会在网页上出现排版问题,建议直接看read.md文件

返回数组说明:


All versions of etaoism with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 gclinux/etaoism contains the following files

Loading the files please wait ....