PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component

Jason Gilmor published on PHPBuilder.com new tutorial about creating unit conversion application using Zend_Measure component of Zend Framework.

Whether you’re trying to develop web applications with a truly global appeal, or you’re one of the roughly 300 million United States residents mired in a maddening cacophony of conflicting measurement standards, chances are you’ll need to regularly convert data from one standard to another. Of course, performing even relatively simple conversion calculations such as from pounds to kilograms from memory can be fairly difficult, let alone calculating more esoteric conversions such as from square meters to acres. To automate this conversion process, I used the Zend Framework to create a calculator capable of easily migrating data among the most commonly used formats. In this tutorial, I’ll show you how you can use the Zend Framework’s Zend_Measure component to create your own measurement-conversion calculator.

While creating simple page with “Cooking Conversion Calculator” he talks about typical problems with unit conversions and how Zend_Measure helps in making it simpler for developers.

  • Share/Bookmark