PHPackages                             jmbtechnologylimited/osmaths - 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. jmbtechnologylimited/osmaths

ActiveLibrary

jmbtechnologylimited/osmaths
============================

conversations around the coordinate systems used for Ordnance Survey Open Data only

v1.0.0(9y ago)01.2k1BSDPHPPHP &gt;=5.3.0

Since Jul 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/JMB-Technology-Limited/OSMaths)[ Packagist](https://packagist.org/packages/jmbtechnologylimited/osmaths)[ Docs](https://github.com/JMB-Technology-Limited/OSMaths)[ RSS](/packages/jmbtechnologylimited-osmaths/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

OSMaths
=======

[](#osmaths)

This is a PHP library for doing the conversations around the coordinate systems used for Ordnance Survey Open Data only.

Most of the Open Data comes in Easting/Northing. It needs converting to Latitude and Longitude. Further more, this is in OSGB36, and you probably want your Lat/Lng in WGS84, which is the same projection Open Street Map and Google Maps use.

I am not an expert in mapping systems. I cobbled this together from other sources based on my needs. I would love to retire it if someone else has a PHP library that does this with a permissive license.

Install via Composer
--------------------

[](#install-via-composer)

```
composer require jmbtechnologylimited/osmaths

```

Use
---

[](#use)

```
$en = new EastingNorthing($inEasting, $inNorthing);
$latlng = $en->toLatLngOSGB36()->toLatLngWGS84();
print $latlng->getLat();
print $latlng->getLng();

```

Code Standards
--------------

[](#code-standards)

Every object is immutable, so you can pass around data objects without worrying they will be changed.

License
-------

[](#license)

BSD License

Note this software does not contain any actual data from the Ordnance Survey. You must get that yourself, and agree to their license to.

Sources and References that have been helpful
---------------------------------------------

[](#sources-and-references-that-have-been-helpful)

-
-
-

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

3596d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43e89eaec930cc5d0b361e600224be601f103e76b5d1463e21d31c78e95304d2?d=identicon)[jarofgreen](/maintainers/jarofgreen)

![](https://www.gravatar.com/avatar/c67fb5728b12a437aad45dc2b739ab6b7b2e43607552684ca1c93cd9d2f0adf8?d=identicon)[jmbtech](/maintainers/jmbtech)

---

Top Contributors

[![jarofgreen](https://avatars.githubusercontent.com/u/85656?v=4)](https://github.com/jarofgreen "jarofgreen (8 commits)")

### Embed Badge

![Health badge](/badges/jmbtechnologylimited-osmaths/health.svg)

```
[![Health](https://phpackages.com/badges/jmbtechnologylimited-osmaths/health.svg)](https://phpackages.com/packages/jmbtechnologylimited-osmaths)
```

PHPackages © 2026

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