PHPackages                             bdp-raymon/chinese-gender-prediction - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bdp-raymon/chinese-gender-prediction

ActiveLibrary

bdp-raymon/chinese-gender-prediction
====================================

Chinese Gender Prediction

v0.2.0(5y ago)0249MITPHPPHP ^7.4|^8.0

Since Jan 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bdp-raymon/chinese-gender-prediction)[ Packagist](https://packagist.org/packages/bdp-raymon/chinese-gender-prediction)[ Docs](https://github.com/bdp-raymon/chinese-gender-prediction)[ RSS](/packages/bdp-raymon-chinese-gender-prediction/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d8309c9e7e2deaeca38399540d4e155b2237333e56b2d5631ab0633240a7b32a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6264702d7261796d6f6e2f6368696e6573652d67656e6465722d70726564696374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bdp-raymon/chinese-gender-prediction)[![Build Status](https://camo.githubusercontent.com/494d5ba62538a9493c70b55e8247cf48aa4111f911f08e761715136c13a52c63/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6264702d7261796d6f6e2f6368696e6573652d67656e6465722d70726564696374696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bdp-raymon/chinese-gender-prediction)[![Quality Score](https://camo.githubusercontent.com/add4ff48ca306f96c5ab1ca961f15769ec0a397a51c75dd7938acbe48376fa13/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6264702d7261796d6f6e2f6368696e6573652d67656e6465722d70726564696374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bdp-raymon/chinese-gender-prediction)[![Total Downloads](https://camo.githubusercontent.com/a08052cc270c0b07114a0a31f27ddc60aba7efe329edb79b70a3a84afd41a4c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6264702d7261796d6f6e2f6368696e6573652d67656e6465722d70726564696374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bdp-raymon/chinese-gender-prediction)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require bdp-raymon/chinese-gender-prediction
```

Usage
-----

[](#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

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Ali Shabani](https://github.com/bdp-raymon)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

TODO
----

[](#todo)

- config scrutinizer
- config styleci
- config travis

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Total

2

Last Release

1912d ago

PHP version history (2 changes)v0.1.0PHP ^7.4|8.0

v0.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/803cb3ff892af3fe04964adf1c725bc8b4aaff48116492545a3266b12fda90de?d=identicon)[shamir0xe](/maintainers/shamir0xe)

![](https://www.gravatar.com/avatar/216bcba65e7ebc9c9669dc6629806763ccfbe39b5b40d898e710dbacfcba6faa?d=identicon)[pyramidalish](/maintainers/pyramidalish)

---

Top Contributors

[![ali-shabani](https://avatars.githubusercontent.com/u/12711392?v=4)](https://github.com/ali-shabani "ali-shabani (3 commits)")

---

Tags

bdp-raymonchinese-gender-prediction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bdp-raymon-chinese-gender-prediction/health.svg)

```
[![Health](https://phpackages.com/badges/bdp-raymon-chinese-gender-prediction/health.svg)](https://phpackages.com/packages/bdp-raymon-chinese-gender-prediction)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
