PHPackages                             ndarproj/agp-laravel - 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-laravel

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

ndarproj/agp-laravel
====================

Axie genes parser tool for Laravel(PHP)

v1.1.0(3y ago)04MITPHPPHP ^8.0

Since Oct 9Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Axie gene parser for Laravel
============================

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

Vanilla PHP Package: [agp-php](https://github.com/ndarproj/agp-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-laravel

```

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1311d 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 (5 commits)")

---

Tags

axieaxie-infinitygene

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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