PHPackages                             astatroth/php-hexgrid - 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. astatroth/php-hexgrid

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

astatroth/php-hexgrid
=====================

Axial hexagonal grid generator for PHP

v1.0.2(7y ago)0102MITPHPPHP ^7.2

Since Jun 20Pushed 7y agoCompare

[ Source](https://github.com/Astatroth/php-hexgrid)[ Packagist](https://packagist.org/packages/astatroth/php-hexgrid)[ RSS](/packages/astatroth-php-hexgrid/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Axial hexagonal grid generator for PHP
======================================

[](#axial-hexagonal-grid-generator-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9d9356bc6ea6f591431af0d1fefe5c1afc3b92c94efde36d557dc0905ad86175/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173746174726f74682f7068702d686578677269642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astatroth/php-hexgrid)[![Total Downloads](https://camo.githubusercontent.com/c66a8ea224ca49d87250b500d1a37b4835404c2c450370fcce44e270f47141ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6173746174726f74682f7068702d686578677269642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astatroth/php-hexgrid)

This package is a port of [Axial hexagonal grid](https://github.com/RobertBrewitz/axial-hexagonal-grid) by Robert Brewitz, originally written in JS.

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

[](#installation)

You can install the package via composer:

```
composer require astatroth/php-hexgrid
```

Usage
-----

[](#usage)

```
use Astatroth\HexGrid\Grid;

$grid = new Grid;
print_r($grid->hexagon(0, 0, 3, true));
```

The resulting array of coordinates can be user to draw a hexagonal grid itself. Visit the [original github page](https://github.com/RobertBrewitz/axial-hexagonal-grid/tree/master/example) if you want an example of how to draw the grid.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

3

Last Release

2566d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9015943?v=4)[Astatroth](/maintainers/Astatroth)[@Astatroth](https://github.com/Astatroth)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/astatroth-php-hexgrid/health.svg)

```
[![Health](https://phpackages.com/badges/astatroth-php-hexgrid/health.svg)](https://phpackages.com/packages/astatroth-php-hexgrid)
```

PHPackages © 2026

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