PHPackages                             azaharizaman/laravel-uom-management - 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. azaharizaman/laravel-uom-management

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

azaharizaman/laravel-uom-management
===================================

Sophisticated UOM Management for Laravel

v0.1.3(6mo ago)226[1 issues](https://github.com/azaharizaman/laravel-uom-management/issues)MITPHPPHP ^8.2CI passing

Since Nov 2Pushed 6mo agoCompare

[ Source](https://github.com/azaharizaman/laravel-uom-management)[ Packagist](https://packagist.org/packages/azaharizaman/laravel-uom-management)[ RSS](/packages/azaharizaman-laravel-uom-management/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (13)Versions (5)Used By (0)

Laravel UOM Management
======================

[](#laravel-uom-management)

A Laravel package that centralises unit-of-measure (UOM) management, allowing applications to define unit types, register custom units, execute precise conversions, and manage packaging relationships with confidence.

Requirements
------------

[](#requirements)

- PHP 8.2 or newer
- Laravel 10, 11, or 13 (13.0.x-dev)
- Database connection supported by Laravel (SQLite is sufficient for evaluation)

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

[](#installation)

Require the package in your Laravel application:

```
composer require azaharizaman/laravel-uom-management
```

The service provider auto-discovers. Publish the configuration and migrations if you need to customise defaults:

```
php artisan vendor:publish --provider="Azaharizaman\\LaravelUomManagement\\LaravelUomManagementServiceProvider"
```

Run migrations to provision the base schema:

```
php artisan migrate
```

Optionally seed baseline units and conversions:

```
php artisan uom:seed
```

Usage Overview
--------------

[](#usage-overview)

```
use Azaharizaman\LaravelUomManagement\Services\DefaultUnitConverter;

$converter = app(DefaultUnitConverter::class);

// Convert 500 millilitres to litres.
$value = $converter->convert('500', 'ML', 'L');

// Convert compound units, e.g. km/hr to m/s.
$compoundConverter = app(\Azaharizaman\LaravelUomManagement\Services\DefaultCompoundUnitConverter::class);
$result = $compoundConverter->convert('120', 'KM/HR', 'M/S');
```

### Custom Units

[](#custom-units)

```
use Azaharizaman\LaravelUomManagement\Services\DefaultCustomUnitRegistrar;

$registrar = app(DefaultCustomUnitRegistrar::class);

$customUnit = $registrar->register([
    'type_code' => 'VOLUME',
    'code' => 'CUST-CUP',
    'name' => 'Customer Cup',
    'conversion_factor' => '237',
    'owner' => $tenant, // morph relation
]);
```

Consult the `docs/` directory for detailed walkthroughs of conversions, packaging, and compound units.

Testing
-------

[](#testing)

Clone the repository and install dependencies:

```
composer install
```

Run the package test suite via Orchestra Testbench:

```
vendor/bin/phpunit
```

To generate coverage reports:

```
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html coverage-report
```

Contributing
------------

[](#contributing)

1. Fork the repository and create a feature branch.
2. Ensure tests and coding standards pass.
3. Submit a pull request describing the change and its motivation.

Issues and feature requests are welcome via GitHub.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance57

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Total

4

Last Release

191d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd098df033715920fe22c5562344c432ac329ccfdc3ba3f3ff18f583d48ca343?d=identicon)[azaharizaman](/maintainers/azaharizaman)

---

Top Contributors

[![azaharizaman](https://avatars.githubusercontent.com/u/117408?v=4)](https://github.com/azaharizaman "azaharizaman (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/azaharizaman-laravel-uom-management/health.svg)

```
[![Health](https://phpackages.com/badges/azaharizaman-laravel-uom-management/health.svg)](https://phpackages.com/packages/azaharizaman-laravel-uom-management)
```

###  Alternatives

[fisharebest/webtrees

webtrees online genealogy

73710.5k13](/packages/fisharebest-webtrees)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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