定制 bdp-raymon/chinese-gender-prediction 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bdp-raymon/chinese-gender-prediction

Composer 安装命令:

composer require bdp-raymon/chinese-gender-prediction

包简介

Chinese Gender Prediction

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

A php package for predict your baby gender base on chinese calendar

Installation

You can install the package via composer:

composer require bdp-raymon/chinese-gender-prediction

Usage

use BdpRaymon\ChineseGenderPrediction\ChineseGenderPrediction;

// initialize class
$prediction = new ChineseGenderPrediction();

// set mother age
$prediction->motherAge(18);

// set pregnancy month
$prediction->pregnancyMonth(0);

// get the prediction, it could be either boy or girl
$prediction->predict(); // boy


// use of chaining
$gender = (new ChineseGenderPrediction())
            ->motherAge(18)
            ->pregnancyMonth(0)
            ->predict();


// or you could use the config constructor
$gender = (new ChineseGenderPrediction([
            'mother_age' => 18,
            'pregnancy_month' => 0
           ]))
            ->predict();

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email alishabani9270@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

PHP Package Boilerplate

This package was generated using the PHP Package Boilerplate.

TODO

  • config scrutinizer
  • config styleci
  • config travis

统计信息

  • 总下载量: 251
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固