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. [Utility &amp; Helpers](/categories/utility)
4. /
5. teqnogen/units

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

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

Laravel package for unit conversion with predefined unit types and units

v1.2.1(3mo ago)010MITPHPPHP ^8.1

Since Mar 18Pushed 3mo 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 2w ago

READMEChangelogDependencies (4)Versions (8)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

37

—

LowBetter than 81% of packages

Maintenance82

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

6

Last Release

90d ago

PHP version history (2 changes)v1.0.1PHP ^8.2

v1.1.0PHP ^8.1

### 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 (3 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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