PHPackages                             tigo/units-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. tigo/units-conversion

ActiveLibrary

tigo/units-conversion
=====================

units conversion table

v0.0.2(4y ago)05MITPHPPHP &gt;= 7.2

Since May 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tigoCaval/units-conversion-table)[ Packagist](https://packagist.org/packages/tigo/units-conversion)[ Fund](https://www.paypal.com/donate?hosted_button_id=5SCQFF9FDUYNW)[ Fund](https://www.paypal.com/donate?hosted_button_id=XLUUH8EL85UXE)[ RSS](/packages/tigo-units-conversion/feed)WikiDiscussions main Synced 1w ago

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

UNITS CONVERSION TABLE
======================

[](#units-conversion-table)

CONVERSION TABLE OF UNITS OF LENGTH

- This package can be used with any PHP application or Frameworks/PHP.
- Download package: `composer require tigo/units-conversion`
- Recommended version: `PHP >= 7.2`
- MIT license. ***Feel free to use this project***. ***Leave a star ⭐ or make a fork !***

*If you found this project useful, consider making a donation to support the developer.*

[![paypal](https://camo.githubusercontent.com/1c212254bf14c516a7571bbb8b8a1679967080453a6ba3a222491e973b6877dd/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f70745f42522f42522f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/donate?hosted_button_id=5SCQFF9FDUYNW)[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/donate?hosted_button_id=XLUUH8EL85UXE)

Identification code (Unit of length)
------------------------------------

[](#identification-code-unit-of-length)

```
Directory: ..\src\Length\StandardUnit.php

```

- Hectometer = 1
- Decameter = 2
- Meters = 3
- Decimeter = 4
- Centimeter = 5
- Millimeter = 6
- Yards = 7
- Feet = 8
- Inch = 9
- Kilometer = 10
- Nanometers = 11
- Micrometers = 12

Introduction
------------

[](#introduction)

Somewhere in your project, you may need to use autoload

```
include __DIR__ ."/vendor/autoload.php";
```

Example: CONVERSION TABLE OF UNITS OF LENGTH

```
   use Tigo\UnitsConversion\ClientLength; //import class
   $client = new ClientLength();
   /**
     Example: Converting kilometer to meter
     $client->convert(kilometer, meter, value)
   **/
   print_r($client->convert(10, 3, 23)); // result: 23000 (meter)

   /**
     Example: Converting Yard to Inch
     $client->convert(yard, inch, value)
   **/
   print_r($client->convert(7, 9, 23)); // result: 828 (inch)
```

### Supporting this project

[](#supporting-this-project)

If you are interested in supporting this project, you can help in many ways. Leave a star ⭐ or make a donation of any value.

### Sponsor supporting this project

[](#sponsor-supporting-this-project)

- \[\]

### Contributors

[](#contributors)

- [Tiago A C Pereira](https://github.com/tigoCaval)
- [list of contributors](https://github.com/tigoCaval/units-conversion-table/graphs/contributors)

### License

[](#license)

MIT license. See the archive [License](https://github.com/tigoCaval/units-conversion-table/blob/main/LICENSE)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

2

Last Release

1823d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f4b80fc9ba8d77c8b32d353d540dbd116ca6402f693e132aa7b1c21c15db39f?d=identicon)[tigopereira](/maintainers/tigopereira)

---

Top Contributors

[![tigoCaval](https://avatars.githubusercontent.com/u/19934116?v=4)](https://github.com/tigoCaval "tigoCaval (25 commits)")

---

Tags

unitsunits of lengthunits conversionconversion of unitslength converter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tigo-units-conversion/health.svg)

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

###  Alternatives

[gabrielelana/byte-units

Library to parse, format and convert byte units

1672.2M19](/packages/gabrielelana-byte-units)

PHPackages © 2026

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