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

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

anamarijapapic/weight-conversions
=================================

Weight conversions in PHP.

1.1.1(2y ago)24[2 PRs](https://github.com/anamarijapapic/weight-conversions/pulls)MITPHPPHP ^8.1

Since Jul 3Pushed 2y ago1 watchersCompare

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

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

Weight conversions in PHP.
==========================

[](#weight-conversions-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8b53ff1a2b2f9a84f353e3467b10aabf39396fe19326bb68682eb8d921bd0da1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e616d6172696a6170617069632f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anamarijapapic/weight-conversions)[![Tests](https://camo.githubusercontent.com/46e68915f085441789be1abbb89a41a992f36a218e7374584897e5dc3903fb4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616e616d6172696a6170617069632f7765696768742d636f6e76657273696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/anamarijapapic/weight-conversions/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/34dc93f322b871df55422cd343f141601aa067bc51977ef5eac625ad3588a56f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e616d6172696a6170617069632f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anamarijapapic/weight-conversions)

Weight conversions in PHP.
*([Spatie Laravel Package Training v2.0](https://laravelpackage.training/) - Creating a PHP package)*

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

[](#installation)

You can install the package via composer:

```
composer require anamarijapapic/weight-conversions
```

Usage
-----

[](#usage)

```
use AnamarijaPapic\WeightConversions\Weight;

$pounds = Weight::kilograms(100)->toPounds();

$stones = Weight::kilograms(100)->toStones();

echo "100 kg = $pounds lb = $stones st";
```

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)

- [Anamarija Papić](https://github.com/anamarijapapic)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~1 days

Total

3

Last Release

1039d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

conversionphpweightweight-conversionweight-conversionsanamarijapapic

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[motomedialab/laravel-self-healing-urls

Generate self-healing URLs for models

252.7k](/packages/motomedialab-laravel-self-healing-urls)

PHPackages © 2026

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