PHPackages                             gecleanme/xkunverio - 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. gecleanme/xkunverio

ActiveLibrary

gecleanme/xkunverio
===================

Unit Conversions made a breeze

2.1.2(2y ago)05MITPHPPHP ^8.1

Since Apr 1Pushed 9mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

Unit Conversions made a breeze
==============================

[](#unit-conversions-made-a-breeze)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ef24ea92c8e9a9a640125dc96a96ae8c07383afa213dd2db2d4e01ab11fdb988/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765636c65616e6d652f786b756e766572696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gecleanme/xkunverio)[![GitHub Tests Action Status](https://camo.githubusercontent.com/eae560f173f65dc71bc1974e3157b504a6cad4fdd4626593448f04e97c2e4154/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6765636c65616e6d652f786b756e766572696f2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/gecleanme/xkunverio/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e7009e579e36311c8b5596a73e47fb56c96f45b69df3ceb00654e1c5bb230d9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6765636c65616e6d652f786b756e766572696f2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/gecleanme/xkunverio/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1921e1b36d143ee91abb7db67f7947928d65a252b3a4ac4f307666cf91c0e5ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6765636c65616e6d652f786b756e766572696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gecleanme/xkunverio)

Zero-dependency, slim Laravel package to convert between different units with ease

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

[](#installation)

You can install the package via composer:

```
composer require gecleanme/xkunverio
```

Usage
-----

[](#usage)

```
// use the designated Conversion Type Class & its corresponding Enum following the naming pattern :
//"X{ConversionType}" & "X{ConversionType}Unit" for the Enum

use gecleanme\Xkunverio\Enums\XLengthUnit;
use gecleanme\Xkunverio\XLength;

// Invoke the 'convert' method with the "unit from", "unit to" and the measurement value then call
// get()

// Convert one Kilometer to Meters
XLength::convert(XLengthUnit::Kilometer, XLengthUnit::Meter, 1)
    ->get(); //1000.0
```

Testing
-------

[](#testing)

```
composer test
```

Supported Length Units
----------------------

[](#supported-length-units)

- Meter
- Kilometer
- Mile
- Yard
- Centimeter
- Inch
- Feet
- Millimeter

Supported Area Units
--------------------

[](#supported-area-units)

- Square Inches
- Square Feet
- Square Yards
- Square Miles
- Square Millimeter
- Square Centimeter
- Square Meters
- Square Kilometers

Supported Mass Units
--------------------

[](#supported-mass-units)

- Kilograms
- Ounces
- Pounds
- Stones
- Long Tonnes
- Short Tonnes
- Milligrams
- Grams
- Metric Tonnes

Supported Speed Units
---------------------

[](#supported-speed-units)

- Meters Per Second
- Kilometers Per Hour
- Miles Per Hour
- Knots

Supported Temperature Units
---------------------------

[](#supported-temperature-units)

- Celsius
- Fahrenheit
- Kelvin

Supported Volume Units
----------------------

[](#supported-volume-units)

- Cubic Inches
- Cubic Feet
- Cubic Centimeters
- Milliliters
- Cubic Meters
- Imperial Gallons
- Imperial Quarts
- Imperial Pints
- Imperial Cups
- Imperial Ounces
- Imperial Tablespoons
- Imperial Teaspoons
- Liters

Changelog
---------

[](#changelog)

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

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

[](#security-vulnerabilities)

Report them by [Emailing](mailto:promomegm@gmail.com) me

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance40

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~1 days

Total

5

Last Release

763d ago

Major Versions

1.0.1 → 2.1.02024-04-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bc80eb638492c0177854c439e32a3aa5c5998bb17628461d7f546f4b4f03191?d=identicon)[gecleanme](/maintainers/gecleanme)

---

Top Contributors

[![gecleanme](https://avatars.githubusercontent.com/u/130738860?v=4)](https://github.com/gecleanme "gecleanme (38 commits)")

---

Tags

laravelMilad Khaderxkunverio

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gecleanme-xkunverio/health.svg)

```
[![Health](https://phpackages.com/badges/gecleanme-xkunverio/health.svg)](https://phpackages.com/packages/gecleanme-xkunverio)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[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)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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