PHPackages                             easifyphp/bmi - 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. easifyphp/bmi

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

easifyphp/bmi
=============

A simple Body Mass Index (BMI) library.

1.0.0(2y ago)12MITPHPPHP &gt;=8.2

Since May 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/EasifyPHP/bmi)[ Packagist](https://packagist.org/packages/easifyphp/bmi)[ RSS](/packages/easifyphp-bmi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

EasifyPHP Template
==================

[](#easifyphp-template)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This is a template for all EasifyPHP packages. It provides a starting point to create a library that follows modern PHP standards.

Features
--------

[](#features)

- PSR-4 autoloading.
- PHP 8.2+ requirement.
- Pre-configured for use with PHP CS Fixer, Pest, Faker, JetBrains PhpStorm Attributes, Composer Normalize, Symfony VarDumper, and Roave Security Advisories.
- Scripts for testing, test coverage, and code fixing.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to create a project from this template.

```
composer create-project easifyphp/template
```

Usage
-----

[](#usage)

After installing, replace the namespace `Easifyphp\Template` with the namespace you prefer. The source files should be placed in the `src/` directory.

The template includes [Faker](https://github.com/FakerPHP/Faker) for generating fake data in your tests or seed scripts. You can use it like so:

```
$faker = Faker\Factory::create();

$name = $faker->name();
```

Additionally, the template includes the [JetBrains PhpStorm Attributes](https://github.com/JetBrains/phpstorm-attributes) package. This package provides additional syntax support when you're using JetBrains PhpStorm as your IDE.

```
use JetBrains\PhpStorm\ArrayShape;

#[ArrayShape(['id' => 'int', 'name' => 'string'])]
function getEntityData(): array
{
    // ...
}
```

The template also includes the [Symfony VarDumper](https://github.com/symfony/var-dumper) package. This package provides a better `var_dump()` function that is easier to read and understand.

```
dump($data);
```

Please refer to the package documentation for more details on how to use it effectively in your project.

Testing
-------

[](#testing)

Use Pest for testing. You can run the tests with the following command:

```
composer run test
```

To check the test coverage, run:

```
composer run test:coverage
```

This template enforces a minimum test coverage of 90%.

Code Formatting
---------------

[](#code-formatting)

The template uses PHP CS Fixer for code formatting. You can run the formatter with the following command:

```
composer run fix
```

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this template, please send an e-mail to Mark via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

The EasifyPHP Template is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Credits
-------

[](#credits)

- [Mark](https://github.com/mmark) (Author)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

1088d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb808569841214f1b6b59dca08b367015cdfbcf9826397f20db1efd3439e71bd?d=identicon)[xHeaven](/maintainers/xHeaven)

---

Top Contributors

[![xHeaven](https://avatars.githubusercontent.com/u/14284867?v=4)](https://github.com/xHeaven "xHeaven (3 commits)")

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/easifyphp-bmi/health.svg)

```
[![Health](https://phpackages.com/badges/easifyphp-bmi/health.svg)](https://phpackages.com/packages/easifyphp-bmi)
```

###  Alternatives

[prooph/standard-projections

Standard Projections for Prooph EventStore

1526.7k](/packages/prooph-standard-projections)[it-quasar/atol-online

Библиотека для работы с АТОЛ Онлайн

119.4k](/packages/it-quasar-atol-online)

PHPackages © 2026

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