On Tue, Feb 25, 2014 at 3:42 PM, dennis-fedco <[email protected]> wrote:
> Similar yet different question.  I figure a different thread is in order not
> to muddle this into my previous one with a slightly different subject.
>
> Was Zend Measure deprecated?
>
> http://framework.zend.com/manual/1.12/en/zend.measure.edit.html
>
> I need some kind of a way to convert Imperial units into SI units for
> various values inside my classes.  Do I just implement my own helper class
> for this?  If so, where do I put it and where would it go inside the ZF2
> module structure?  I figure creating a separate module just for this will be
> overkill?  Or not?

It was removed from ZF2, for a variety of reasons.

First is that a lot of the functionality in that component is now
present in ext/intl in PHP.

Second is that it had heavy reliance on Zend_Locale, and the task of
stripping that out to use the native Locale class was monumental --
and nobody with appropriate expertise stepped up to take it on.

If you're interested in doing this, the appropriate component would be
Zend\I18n. The conversion utilities themselves should likely be in a
"Measure" or "Conversion" sub-namespace, and then you could create
appropriate helpers as needed in the Helper sub-namespace.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to