PHPackages                             thuhtet/weight-conversion - 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. thuhtet/weight-conversion

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

thuhtet/weight-conversion
=========================

Weight Conversion in PHP

1.1.0(3y ago)03MITPHPPHP ^8.1

Since Jul 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/thuhtettun-geniefintech/weight-conversion)[ Packagist](https://packagist.org/packages/thuhtet/weight-conversion)[ Docs](https://github.com/thuhtet/weight-conversion)[ RSS](/packages/thuhtet-weight-conversion/feed)WikiDiscussions main Synced 1mo ago

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

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Weight Conversion in PHP
========================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/8d2876a94fb4cffaaf0606a78d6c4b62141b316d2236755bdd8a501cbf4e38b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f7765696768742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/weight-conversion)[![GitHub Tests Action Status](https://camo.githubusercontent.com/839c72dc1bef3f0bfe45045dcb8cbcf61ea21c0a7a6c3041a357c1d0aadae8d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f7765696768742d636f6e76657273696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/spatie/weight-conversion/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4266dd4b06479913fec184b71f77347aa7ddb74a86e28f5ba1bb4af3cef6c388/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f7765696768742d636f6e76657273696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/spatie/weight-conversion/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c0778f905fd08d3bdd4112b4441f9152d1ca153843946e32b2e1798f83a617bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f7765696768742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/weight-conversion)

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

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/cb861ef8de9d974e30e95d00a56bbdd5c2f765c145b66317bb53616a1aa12db2/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7765696768742d636f6e76657273696f6e2e6a70673f743d31)](https://spatie.be/github-ad-click/weight-conversion)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/weight-conversion
```

You can publish and run the migrations with:

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

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

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

Usage
-----

[](#usage)

```
$weightConversion = new Spatie\WeightConversion();
echo $weightConversion->echoPhrase('Hello, Spatie!');
```

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/thuhtettun-geniefintech/.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)

- [Thu Htet Tun](https://github.com/thuhtettun-geniefintech)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

2

Last Release

1398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b92e088dda51494fc93eca65a4315b28ff3c3f0ac8dadb1264489acb970a736?d=identicon)[thuhtettun-geniefintech](/maintainers/thuhtettun-geniefintech)

---

Top Contributors

[![thuhtettun-geniefintech](https://avatars.githubusercontent.com/u/100659637?v=4)](https://github.com/thuhtettun-geniefintech "thuhtettun-geniefintech (9 commits)")

---

Tags

laravelweight-conversionthuhtet

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/thuhtet-weight-conversion/health.svg)

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

###  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)
