PHPackages                             sourecode/unit-bundle - 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. sourecode/unit-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

sourecode/unit-bundle
=====================

Provides a set of classes to work with different units of measure.

v0.2.0(11mo ago)049[2 issues](https://github.com/SoureCode/UnitBundle/issues)MITPHPPHP &gt;=8.4CI passing

Since Apr 6Pushed 11mo agoCompare

[ Source](https://github.com/SoureCode/UnitBundle)[ Packagist](https://packagist.org/packages/sourecode/unit-bundle)[ RSS](/packages/sourecode-unit-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (17)Versions (7)Used By (0)

sourecode/unit-bundle
=====================

[](#sourecodeunit-bundle)

[![Packagist Version](https://camo.githubusercontent.com/b9bcd291394bc5d5d94abced525e3dc9b5bdd96e524622fb87d75a3319e9872c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f757265636f64652f756e69742d62756e646c652e737667)](https://packagist.org/packages/sourecode/unit-bundle)[![Downloads](https://camo.githubusercontent.com/7aaa086e6aa9a7158345b223bcc899c41b0edfb968c3d7ac8b06400261810a5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f757265636f64652f756e69742d62756e646c652e737667)](https://packagist.org/packages/sourecode/unit-bundle)[![CI](https://github.com/SoureCode/UnitBundle/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/SoureCode/UnitBundle/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/b94972ace54b33dccbab606d7868e8b849e688115a1478098ef6f4d4554a207f/68747470733a2f2f636f6465636f762e696f2f67682f536f757265436f64652f556e697442756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d5a4547455a4a45513142)](https://codecov.io/gh/SoureCode/UnitBundle)[![Mutation testing badge](https://camo.githubusercontent.com/cac5a9c6fcb66fc1d63d3148ba06dff1c0422434a7014c80ee90ef8c9bfb1119/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246536f757265436f6465253246556e697442756e646c652532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/SoureCode/UnitBundle/master)

This bundle provides a simple way to handle unit of measurements in Symfony applications.

- [License](./LICENSE)

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

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require sourecode/unit-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require sourecode/unit-bundle
```

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    \SoureCode\Bundle\Unit\SoureCodeUnitBundle::class => ['all' => true],
];
```

Config
------

[](#config)

```
# config/packages/soure_code_unit.yaml
# @todo
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

6

Last Release

352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21c0769c766e96c15aaf9886ddecfd66dd525e55d754f18ffbe67c9277ffe43a?d=identicon)[chapterjason](/maintainers/chapterjason)

---

Top Contributors

[![chapterjason](https://avatars.githubusercontent.com/u/1337562?v=4)](https://github.com/chapterjason "chapterjason (27 commits)")

---

Tags

lengthsymfony-bundletimeunit-of-measurement

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sourecode-unit-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sourecode-unit-bundle/health.svg)](https://phpackages.com/packages/sourecode-unit-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)

PHPackages © 2026

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