PHPackages                             org\_heigl/converter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. org\_heigl/converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

org\_heigl/converter
====================

Convert from and to almost anything

1.0.0(10y ago)62.3k[2 PRs](https://github.com/heiglandreas/Converter/pulls)MITPHP

Since Nov 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/heiglandreas/Converter)[ Packagist](https://packagist.org/packages/org_heigl/converter)[ RSS](/packages/org-heigl-converter/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

```
=========
Converter
=========

Converter is a PHP library that allows easy conversion between different
metrics of a kind.

Conversion between meter and millimeter might be easy and can be implemented
over and over again, but what about the conversion from millimeter to
nautical miles? Or what about converting latitude/longitude to UTM? Or what
about converting degree Farenheit to Kelvin?

The answer is easy: Use this Converter

Requirements
------------

* PHP in version 5.3
* Nothing else

Installation
------------

* Put the Converter-Folder wherever you like and include that location into your
  include path.
* If you do not use an autoloader, you should do so!

Usage
-----
Have a look at this example-code to convert from Nautical Miles to yards.

::

  $miles      = 12;
  $from       = new \Converter\Length\NauticalMiles();
  $to         = new \Converter\Length\Yard();
  $miles2Yard = \Converter\Converter::factory($from, $to);

  echo $miles2Yard->convert($miles);
  // 24304.461942257

So a once defined Converter-Object can be reused as often as you like.

How does it work
----------------

Clearly by magic. everything else would not be sophisticated enough.....

For those of you that do not believe in magic, the explanation is quite simple.
Converter uses an internal measure to and from which everything is converted.

So in the previous example the Converter calls Length\NauticalMiles to convert
the input to the internal measure and hands that over to Length\BritishYard to
convert the internal measure to british yards.

Normaly the internal measure is one of the international standard measurements
so for lengths the internal measure is meter.

For an overview have a look at the following list:

:Length: meter
:Area: squaremeter
:Volume: cubicmeter
:Geographical: Latitude/Longitude/Height above NN
:Temperature: Kelvin
:Color: CIELAB
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae5183aaad2bc7453230704bd6991dc6ccbcd6e775c6a29efdc94350a69f247?d=identicon)[heiglandreas](/maintainers/heiglandreas)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/org-heigl-converter/health.svg)

```
[![Health](https://phpackages.com/badges/org-heigl-converter/health.svg)](https://phpackages.com/packages/org-heigl-converter)
```

###  Alternatives

[daftspunk/laravel-config-writer

Laravel provider to be able to rewrite configuration

17652.9k1](/packages/daftspunk-laravel-config-writer)[jackabox/nova-duplicate-field

A Laravel Nova field to duplicate records.

31116.1k](/packages/jackabox-nova-duplicate-field)[odiseoteam/sylius-report-plugin

Plugin for Sylius to make customizable reports.

3279.1k](/packages/odiseoteam-sylius-report-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
