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

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

daar/bmi
========

A BMI calculator based on WHO data and definitions.

v1.1.4(1y ago)01.2k—0%[3 PRs](https://github.com/daar/bmi/pulls)MITPHPPHP ^8.2CI passing

Since Apr 28Pushed 1mo ago1 watchersCompare

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

READMEChangelog (9)Dependencies (12)Versions (12)Used By (0)

A BMI calculator based on WHO data and definitions.
===================================================

[](#a-bmi-calculator-based-on-who-data-and-definitions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5692457f430fa7e635d499033482f5a8ee44cbd0b8932f3f116e7e0176067963/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646161722f626d692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daar/bmi)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bab8aa9a00748282444f51526bfbe36e174b4214e0ff501a0d44f0b29adec1f2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f646161722f626d692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/daar/bmi/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/62faf4a517ce30ddc789a45f019f9ae33578eda8431bf7fa1e6c082a40d13238/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f646161722f626d692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/daar/bmi/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fc5ac7a0d63c5154e2096d07188bbd3c241e8c4eb96c3b1a73431853d379e82d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646161722f626d692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daar/bmi)

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

[](#installation)

You can install the package via composer:

```
composer require daar/bmi
```

Usage
-----

[](#usage)

```
use Daar\Bmi\BMI;

// Calculate the BMI
$bmi = BMI::calculate($weight, $length);

// Calculate the BMI category according to the WHO standard
$category = BMI::category($weight, $length, $gender, $ageInMonths);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [daar](https://github.com/daar)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance64

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 63.8% 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 ~51 days

Recently: every ~74 days

Total

9

Last Release

704d ago

PHP version history (3 changes)v1.0.0PHP ^8.0

v1.1.0PHP ^8.1

v1.1.4PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![daar](https://avatars.githubusercontent.com/u/865062?v=4)](https://github.com/daar "daar (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

laravelBMIdaar

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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