PHPackages                             ndarproj/agp-php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ndarproj/agp-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ndarproj/agp-php
================

Axie genes parser tool

v1.1.2(3y ago)111MITPHPPHP ^8.0

Since Oct 9Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ndarproj/agp-php)[ Packagist](https://packagist.org/packages/ndarproj/agp-php)[ RSS](/packages/ndarproj-agp-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

Axie gene parser for PHP
========================

[](#axie-gene-parser-for-php)

This is a port of the Javascript version of a plugin, you can find it here: [agp-npm](https://github.com/ShaneMaglangit/agp-npm)

Package `agp-php` is a gene parsing package for Axie Infinity.

The name agp stands for "Axie Gene Parser" which decodes the hex representation of an Axie's gene into a human readable format.

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

[](#requirements)

Composer, PHP 8.0 or later.

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

[](#installation)

Install using Composer:

```
composer require ndarproj/agp-php

```

Usage
-----

[](#usage)

To get started, you'll first need to get the gene of an Axie in hex. You may use the [Axie Infinity GraphQL endpoint](https://axie-graphql.web.app/) to get this detail. For this example, let's use the hex `0x11c642400a028ca14a428c20cc011080c61180a0820180604233082`

Let us create an AxieGene object from the hex string that we have.

256 Bit Genes

```
use Ndarproj\AxieGeneParser\AxieGene;

$axieGene = new AxieGene(
    "0x11c642400a028ca14a428c20cc011080c61180a0820180604233082"
);
```

512 Bit Genes

```
use Ndarproj\AxieGeneParser\AxieGene;
use Ndarproj\AxieGeneParser\HexType;

$axieGene = new AxieGene(
    "0x280000000000010040412090830C0000000101942040440A00010190284082040001018C2061000A000101801021400400010180204080060001018418404008",
    HexType::Bit512
);
```

Gene Quality
------------

[](#gene-quality)

You may also get the quality of the genes directly through the AxieGene object.

```
$axieGene->getGeneQuality();
```

This object automatically handles the parsing of the hex value for you. You may simply use the accessors of the class to get the gene information that you want.

Here are the properties that you can get from the AxieGene object.

- getGenes()
- getCls()
- getRegion()
- getTag()
- getBodySkin()
- getPattern()
- getColor()
- getEyes()
- getMouth()
- getEars()
- getHorn()
- getBack()
- getTail()

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

4

Last Release

1362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88d5254911243eac9f66ed4584e717ff36399eff91548a337cfadfd4188488b2?d=identicon)[ndarproj](/maintainers/ndarproj)

---

Top Contributors

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

---

Tags

axieaxie-infinitygene

### Embed Badge

![Health badge](/badges/ndarproj-agp-php/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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