PHPackages                             uluumbch/weight-conversions - 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. uluumbch/weight-conversions

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

uluumbch/weight-conversions
===========================

A simple PHP package for convert a weight

v1.1.0(8mo ago)11[3 PRs](https://github.com/uluumbch/weight-conversions/pulls)MITPHPPHP ^8.3CI passing

Since Aug 27Pushed 1mo agoCompare

[ Source](https://github.com/uluumbch/weight-conversions)[ Packagist](https://packagist.org/packages/uluumbch/weight-conversions)[ Docs](https://github.com/uluumbch/weight-conversions)[ GitHub Sponsors](https://github.com/uluumbch)[ RSS](/packages/uluumbch-weight-conversions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

A simple PHP package for convert a weight
=========================================

[](#a-simple-php-package-for-convert-a-weight)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4fcce7190301ddf87a8dfa66e9b98268bfb26b2551c9de7e7c52467305fe76c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756c75756d6263682f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uluumbch/weight-conversions)[![Tests](https://camo.githubusercontent.com/94687b26418b422eafbdb2ea156f862e15dd684069bb734ba17b80fdd6c1bd7a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f756c75756d6263682f7765696768742d636f6e76657273696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/uluumbch/weight-conversions/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/a2c8cae22e6e33bbd6ff5c7105009f877515912b805e910c9b0b012a1b8a5d28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756c75756d6263682f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uluumbch/weight-conversions)

A simple PHP package for convert a weight.

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

[](#installation)

You can install the package via composer:

```
composer require uluumbch/weight-conversions
```

Usage
-----

[](#usage)

```
$convert = new Uluumbch\WeightConversions();
echo $convert->poundsToKilograms(1); // 0.45359237
echo $convert->kilogramsToPounds(1); // 2.204622621
echo $convert->gramsToOunces(1); // 0.0352739615
echo $convert->ouncesToGrams(1); // 28.349523125
echo $convert->stonesToPounds(1); // 14
echo $convert->poundsToStones(14); // 1
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Bachrul Uluum](https://github.com/uluumbch)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.9% 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 ~0 days

Total

2

Last Release

256d ago

### Community

Maintainers

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

---

Top Contributors

[![uluumbch](https://avatars.githubusercontent.com/u/49960993?v=4)](https://github.com/uluumbch "uluumbch (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

phpweight-conversionsuluumbch

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/uluumbch-weight-conversions/health.svg)

```
[![Health](https://phpackages.com/badges/uluumbch-weight-conversions/health.svg)](https://phpackages.com/packages/uluumbch-weight-conversions)
```

PHPackages © 2026

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