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

ActiveLibrary

teqnogen/units
==============

Laravel package for unit conversion with predefined unit types and units

v1.0.1(4d ago)00MITPHPPHP ^8.2

Since Mar 18Pushed 4d agoCompare

[ Source](https://github.com/teqnogen/units)[ Packagist](https://packagist.org/packages/teqnogen/units)[ Docs](https://github.com/teqnogen/units)[ RSS](/packages/teqnogen-units/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Teqnogen Units
==============

[](#teqnogen-units)

Laravel package for unit conversion with predefined unit types and units.

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

[](#installation)

```
composer require teqnogen/units

php artisan migrate

php artisan vendor:publish
```

Example
-------

[](#example)

```
use Teqnogen\Units\UnitConverter;

$converter = app(UnitConverter::class);

// Convert 5 kilometers to meters
$valueInMeters = $converter->convert(5, 'km', 'm', 'length'); // 5000

// Convert 2 kilograms to grams
$valueInGrams = $converter->convert(2, 'kg', 'g', 'weight'); // 2000
```

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance99

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

4d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f53690fac8cc80b3654976b4b419baeaec5ee8e85faa31c79ebbf690ceca4e3?d=identicon)[teqnogen](/maintainers/teqnogen)

---

Top Contributors

[![teqnogen](https://avatars.githubusercontent.com/u/268701828?v=4)](https://github.com/teqnogen "teqnogen (2 commits)")

---

Tags

laravelconversionunitsunit-conversion

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k36.2M412](/packages/spatie-laravel-medialibrary)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42100.3k](/packages/danielme85-laravel-cconverter)[synchro/laravel-medialibrary-audio

Audio file thumbnail generator for Spatie's Laravel Media Library

291.9k](/packages/synchro-laravel-medialibrary-audio)

PHPackages © 2026

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