PHPackages                             sourcetoad/bytey - 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. sourcetoad/bytey

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

sourcetoad/bytey
================

A library for encoding Google Map's Encoded Polyline.

v1.1.0(1y ago)11.2kMITPHPPHP ^8.2||^8.3||^8.4CI passing

Since Aug 20Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/sourcetoad/Bytey)[ Packagist](https://packagist.org/packages/sourcetoad/bytey)[ RSS](/packages/sourcetoad-bytey/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Bytey
=====

[](#bytey)

*A simple implementation of [Google's Polyline Encoding](https://developers.google.com/maps/documentation/utilities/polylinealgorithm) algorithm in PHP.*

[![main](https://github.com/sourcetoad/Bytey/actions/workflows/main.yml/badge.svg)](https://github.com/sourcetoad/Bytey/actions/workflows/main.yml) [![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

### Install

[](#install)

This package is currently supporting PHP 8.2 and above.

```
composer require sourcetoad/bytey
```

### Documentation

[](#documentation)

#### Encoding

[](#encoding)

```
use Sourcetoad\Bytey;

$points = [
    [38.5, -120.2],
    [40.7, -120.95],
    [43.252, -126.453]
];

$encoded = Bytey::googlePolylineEncode($points);
// Outputs "_p~iF~ps|U_ulLnnqC_mqNvxq`@"
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance62

Regular maintenance activity

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~68 days

Total

3

Last Release

501d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.2||^8.3||^8.4

### Community

Maintainers

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

---

Top Contributors

[![iBotPeaches](https://avatars.githubusercontent.com/u/611784?v=4)](https://github.com/iBotPeaches "iBotPeaches (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sourcetoad-bytey/health.svg)

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

PHPackages © 2026

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