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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires php Version >=8.5
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/measurement-bundle contains the following files

Loading the files please wait ...