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

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

lodeb/weight-conversions
========================

Weight conversions in PHP

1.2.0(3y ago)03[3 PRs](https://github.com/Lodebossuyt/weight-conversions/pulls)MITPHPPHP ^8.0|^8.1

Since Dec 18Pushed 2y ago1 watchersCompare

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

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

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/7a2542c44cae234c68cf7d7ed7c153a213098c1cf9871c50fb5a4cd375a2bab0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6465622f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lodeb/weight-conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4de8d4cedb0bcac918f2fcacb2be05668e44438a92df4df3f405944f98a6b296/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f6465622f7765696768742d636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/lodeb/weight-conversions/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8bffd88621130d554ad08cf4bb777d265805853415c94d6cee18ee01273e75bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f6465622f7765696768742d636f6e76657273696f6e732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/lodeb/weight-conversions/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ddc22299e8850f84fb7170cc0d57e7209e043138917b3cc89fd90bcc2ab2c078/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6465622f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lodeb/weight-conversions)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require lodeb/weight-conversions
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="weight-conversions-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="weight-conversions-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="weight-conversions-views"
```

Usage
-----

[](#usage)

```
$weightConversions = new Lodeb\WeightConversions();

echo $weightConversions->kilograms(100)->toPounds();

echo $weightConversions->kilograms(100)->toBananas();
```

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)

- [Lode Bossuyt](https://github.com/Lodeb)
- [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

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

2

Last Release

1246d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82a10b9b2f77338c4b2e20bd4ee17497631874fcce012a55becbafe6d85b7134?d=identicon)[Lodeb](/maintainers/Lodeb)

---

Top Contributors

[![Lodebossuyt](https://avatars.githubusercontent.com/u/90692977?v=4)](https://github.com/Lodebossuyt "Lodebossuyt (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

conversionsphpweightlaravelweight-conversionsLodeb

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[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)[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)

PHPackages © 2026

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