https://github.com/sourecode/unitbundle
This bundle provides a simple way to handle unit of measurements in Symfony applications.
https://github.com/sourecode/unitbundle
length symfony-bundle time unit-of-measurement
Last synced: 3 months ago
JSON representation
This bundle provides a simple way to handle unit of measurements in Symfony applications.
- Host: GitHub
- URL: https://github.com/sourecode/unitbundle
- Owner: SoureCode
- License: mit
- Created: 2025-04-04T18:18:56.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-06-01T00:21:43.000Z (4 months ago)
- Last Synced: 2025-07-02T09:48:07.348Z (3 months ago)
- Topics: length, symfony-bundle, time, unit-of-measurement
- Language: PHP
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sourecode/unit-bundle
[](https://packagist.org/packages/sourecode/unit-bundle)
[](https://packagist.org/packages/sourecode/unit-bundle)
[](https://github.com/SoureCode/UnitBundle/actions/workflows/ci.yml)
[](https://codecov.io/gh/SoureCode/UnitBundle)
[](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
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
Open a command console, enter your project directory and execute:
```console
composer require sourecode/unit-bundle
```### Applications that don't use Symfony Flex
#### 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:```console
composer require sourecode/unit-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:```php
// config/bundles.phpreturn [
// ...
\SoureCode\Bundle\Unit\SoureCodeUnitBundle::class => ['all' => true],
];
```## Config
```yaml
# config/packages/soure_code_unit.yaml
# @todo
```