Download the PHP package phil/measurement-bundle without Composer
On this page you can find all versions of the php package phil/measurement-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phil/measurement-bundle
More information about phil/measurement-bundle
Files in phil/measurement-bundle
Package measurement-bundle
Short Description Units of measure in Symfony: form types, validation constraints, a Doctrine column and Twig formatting, on top of phil/measurement.
License MIT
Homepage https://ph-il.ca
Informations about the package measurement-bundle
phil/measurement-bundle
Weights and sizes in Symfony forms, validation, Twig and Doctrine, as exact decimals with their units, per sales channel, written in each locale.
phil/measurement-bundle integrates phil/measurement with Symfony: the registry of units with the application's own,
the unit of each sales channel, a form type that reads a value and a unit in the request's locale, constraints that
bound a measurement in any unit of its family, Twig filters that write it in the locale or in the unit a region
prefers, and a Doctrine column type that stores it without a float. The library alone suits an application without
Symfony.
Status
| Part | State |
|---|---|
PhilMeasurementBundle and its configuration phil_measurement: units added, unit of each channel |
Implemented and tested |
MeasurementType, the form type of a value and a unit |
Implemented and tested |
MeasurementRange and MeasurementUnit, the constraints |
Implemented and tested |
format_measurement, measurement_in_channel and preferred_units, the Twig filters |
Implemented and tested |
phil_measurement, the Doctrine column type |
Implemented and tested on SQLite; tests for MySQL and PostgreSQL run when their servers are given |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements and installing. |
| Configuration | Every option, with an example. |
| Forms | MeasurementType, its options and how it reads a value. |
| Validation | MeasurementRange and MeasurementUnit. |
| Twig | The filters that write and convert a measurement. |
| Doctrine | The phil_measurement column type, and two columns to sort or sum in SQL. |
| Extension points | The services to replace, the tags to add to, and when they are stable. |
| Testing | The bundle's tests, and the servers its integration tests read. |
| Reference | Every class and service of the bundle. |
Quick start
Requirements
PHP 8.5 or later with the intl extension, and Symfony 8.2 or later. Doctrine DBAL 4 for the column type, Twig 3 for
the filters.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.
All versions of measurement-bundle with dependencies
ext-intl Version *
ext-mbstring Version *
phil/measurement Version ^0.1@dev
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/form Version ^8.2
symfony/options-resolver Version ^8.2
symfony/translation Version ^8.2
symfony/translation-contracts Version ^3.8
symfony/validator Version ^8.2