PHPackages                             egusakov/characteristics-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. egusakov/characteristics-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

egusakov/characteristics-generator
==================================

A simple library that allows you to generate character characteristics depending on their rarity

v0.0.1.x-dev(2y ago)17MITPHPPHP ^8.2

Since Feb 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/eegusakov/characteristics-generator)[ Packagist](https://packagist.org/packages/egusakov/characteristics-generator)[ RSS](/packages/egusakov-characteristics-generator/feed)WikiDiscussions main Synced 1mo ago

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

Characteristics Generator
=========================

[](#characteristics-generator)

Characteristics Generator is a simple PHP library for generating character characteristics based on their rarity. It is ideal for game and application developers who need to create unique character attributes.

Basic features available out of the box:

1. Health
2. Power
3. Defense
4. Agility
5. Rarity
6. Energy

Installing
----------

[](#installing)

The recommended way to install Characteristics Generator is via [Composer](http://getcomposer.org/).

```
composer require Eegusakov/characteristics-generator
```

Simple example
--------------

[](#simple-example)

```
use Eegusakov\CharacteristicsGenerator\CharacteristicsFactory;
use Eegusakov\CharacteristicsGenerator\Entities\ValidRange;
use Eegusakov\CharacteristicsGenerator\Rarity\Common;
use Eegusakov\CharacteristicsGenerator\Rarity\Epic;
use Eegusakov\CharacteristicsGenerator\Rarity\Legendary;
use Eegusakov\CharacteristicsGenerator\Rarity\Rare;
use Eegusakov\CharacteristicsGenerator\Rarity\Uncommon;

$factory = new CharacteristicsFactory(
    new Common(50, 3, new ValidRange(20, 40)),
    new Uncommon(25, 4, new ValidRange(30, 50)),
    new Rare(15, 5, new ValidRange(40, 60)),
    new Epic(7, 8, new ValidRange(50, 80)),
    new Legendary(3, 10, new ValidRange(80, 100))
);

$characteristics = $factory->create();
```

License
-------

[](#license)

This project is licensed under the MIT license - see the [LICENSE](LICENSE.md) file for details

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

818d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105296445ff3d46315e70c06c175e03e03d881d6cf84b405bc31dfb6e2c88519?d=identicon)[eegusakov](/maintainers/eegusakov)

---

Top Contributors

[![eegusakov](https://avatars.githubusercontent.com/u/85644473?v=4)](https://github.com/eegusakov "eegusakov (6 commits)")[![egusakov](https://avatars.githubusercontent.com/u/37001814?v=4)](https://github.com/egusakov "egusakov (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/egusakov-characteristics-generator/health.svg)

```
[![Health](https://phpackages.com/badges/egusakov-characteristics-generator/health.svg)](https://phpackages.com/packages/egusakov-characteristics-generator)
```

###  Alternatives

[t3docs/examples

This extension packages a number of code examples from the Core Documentation.

3120.2k](/packages/t3docs-examples)

PHPackages © 2026

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