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

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

spatie/weight-conversions
=========================

Weight conversions in PHP

1.1.2(4y ago)4202MITPHPPHP ^7.4|^8.0CI passing

Since Nov 3Pushed 3mo ago1 watchersCompare

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

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/2a0a6e3eec10b3ee37652bf5d498f4c6189a41eb4890becd81a29422f62550c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/weight-conversions)[![Tests](https://github.com/spatie/weight-conversions/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/spatie/weight-conversions/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/a64ec14e18bbf37fd0c9da9600d3dc824bd0b031e6fdf08aa43eaff7b2ffd295/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f7765696768742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/weight-conversions)

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

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

[](#installation)

You can install the package via composer:

```
composer require spatie/weight-conversions
```

Usage
-----

[](#usage)

```
$skeleton = new Spatie\WeightConversions();
echo $skeleton->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/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)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance57

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~2 days

Total

5

Last Release

1642d ago

Major Versions

0.0.1 → 1.0.02021-11-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (39 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (4 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")

---

Tags

conversionsphpweightspatieweight-conversions

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-package-tools

Tools for creating Laravel packages

935125.5M7.0k](/packages/spatie-laravel-package-tools)[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[spatie/macroable

A trait to dynamically add methods to a class

72659.6M64](/packages/spatie-macroable)[spatie/regex

A sane interface for php's built in preg\_\* functions

1.1k17.1M59](/packages/spatie-regex)[spatie/enum

PHP Enums

84429.1M68](/packages/spatie-enum)

PHPackages © 2026

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