PHPackages                             endlessmiles/polyline - 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. endlessmiles/polyline

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

endlessmiles/polyline
=====================

A comopser package to decode Google Polyline strings into an array of latlng pairs.

1.0.1(3y ago)11.2k↓50%MITPHPPHP ^7.4|^8.0

Since Jun 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/marcaspers/polyline)[ Packagist](https://packagist.org/packages/endlessmiles/polyline)[ RSS](/packages/endlessmiles-polyline/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Polyline Decoder Package
========================

[](#polyline-decoder-package)

A Laravel composer package to decode Google Polyline strings into an array of GPS coordinate pairs. Compatible with PHP 7.4 or higher.

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

[](#installation)

Run the following command in the root of your project directory:

```
composer require endlessmiles/polyline
```

Use
---

[](#use)

The package is very simple to use:

```
$coordinates = Polyline::decode($polylineString);
```

The function returns an array of pairs of latitude and longitude:

```
[
    [latitute_float1, longitude_float1],
    [latitute_float2, longitude_float2],
    [latitute_float3, longitude_float3],
]
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/923890b730e0f392a081b14fb621a79876cc16ad0dc4c93ddca15fef810a1950?d=identicon)[marcaspers](/maintainers/marcaspers)

---

Top Contributors

[![marcaspers](https://avatars.githubusercontent.com/u/29890611?v=4)](https://github.com/marcaspers "marcaspers (3 commits)")

### Embed Badge

![Health badge](/badges/endlessmiles-polyline/health.svg)

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

###  Alternatives

[light/hashids

Hashids for Yii2

1120.2k](/packages/light-hashids)

PHPackages © 2026

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