Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get all supported units? #46

Closed
rajivseelam opened this issue Jun 11, 2015 · 4 comments
Closed

Is it possible to get all supported units? #46

rajivseelam opened this issue Jun 11, 2015 · 4 comments

Comments

@rajivseelam
Copy link

For example, if I want to give a drop down in user interface where UOM is chosen by user, I have to manually add list of units supported. Is it possible via some API with library? getSupportedUnits()?

@anjalirana
Copy link

Any update on this? Because PhysicalQuantity::findUnitOfMeasureByNameOrAlias() returns with 500 Internal server error without any detail in it! - Its better if i could get supported units and then throw my customized exception with proper error message.

soyuka pushed a commit to soyuka/php-units-of-measure that referenced this issue Dec 22, 2015
@triplepoint
Copy link
Member

The referenced commit to soyuka's branch looks reasonable. I'd probably accept that as it stands if a pull request was submitted. Otherwise, we'll get around to implementing something similar.

soyuka pushed a commit to soyuka/php-units-of-measure that referenced this issue Feb 21, 2016
soyuka pushed a commit to soyuka/php-units-of-measure that referenced this issue Feb 21, 2016
@soyuka
Copy link
Contributor

soyuka commented Feb 21, 2016

Added a Pull request (+test)

triplepoint added a commit that referenced this issue Feb 21, 2016
Workaround to get all supported units (#46)
@triplepoint
Copy link
Member

The associated PR #46 for this got merged, thanks for the contribution.

tlode pushed a commit to tlode/php-units-of-measure that referenced this issue Feb 25, 2016
* commit 'a0a614fa09b6b16536a9ee2e71349f6759a32dc4':
  Workaround to get all supported units (PhpUnitsOfMeasure#46)
  updated fluid ounce aliases
  updated fl oz abbreviation
  converted more tabs to spaces
  got rid of tabs and used spaces instead
  standardized added units
  added some more units and aliases
  Fix a bug in quantity.  Add unit tests.
  Add Quantity and SolidAngle physical quantities, per the SI list of base quantities.
  Update changelog for new release
  Update composer.json
  php 7 failures are no longer ignored in travis
  support for travis's container-based testing
  add CI testing for php 7
  add x-debug to vagrant install, to enable phpunit code coverage during dev
  Packages rules say the vendor name can't be camel case.
  Bump the build dependencies versions.
  De-triplepoint-ify the packaging, to transfer ownership to PhpUnitsOfMeasure
  The vagrant submodule was never a good idea.  Replace it with something simpler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants