PHPackages                             samlitowitz/php-radix-tree-generator - 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. samlitowitz/php-radix-tree-generator

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

samlitowitz/php-radix-tree-generator
====================================

Generate PHP code for a Radix Tree for a static set of data

v1.0.1(5mo ago)30Apache-2.0PHPPHP ^8.4CI passing

Since Oct 1Pushed 5mo agoCompare

[ Source](https://github.com/samlitowitz/php-radix-tree-generator)[ Packagist](https://packagist.org/packages/samlitowitz/php-radix-tree-generator)[ RSS](/packages/samlitowitz-php-radix-tree-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (11)Versions (4)Used By (0)

PHP Radix Tree Generator
========================

[](#php-radix-tree-generator)

[![Pipes](https://github.com/samlitowitz/php-radix-tree-generator/actions/workflows/pipes.yaml/badge.svg)](https://github.com/samlitowitz/php-radix-tree-generator/actions/workflows/pipes.yaml)

Generate PHP code for a Radix Tree for a static set of data

Table of Contents
-----------------

[](#table-of-contents)

1. [Installation](#installation)
2. [Usage](#usage)
    1. [Configuration](#configuration)

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

[](#installation)

Install via [Composer](https://getcomposer.org/).

```
composer require --dev samlitowitz/php-radix-tree-generator
```

Usage
-----

[](#usage)

1. Create a [configuration](#configuration) targeting the type(s) you wish to generate a collection for.
2. Generate the desired collection(s) by running the following command

    ```
    ./vendor/bin/php-radix-tree generate config.json ./path/to/output/dir/
    ```

### Configuration

[](#configuration)

A JSON schema for the configuration is available [here](assets/schema/configuration.json). The example [`RadixTree`](examples/iso-3166-2/RadixTree.php) is generated using the example [configuration](examples/iso-3166-2/config.json). The [`RadixTreeUnderTest`](tests/generated-code/RadixTreeUnderTest.php), generated for unit testing, is another good example of the generated PHP source code.

---

This site or product includes IP2Location™ ISO 3166-2 Subdivision Code which available from .

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance70

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

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 ~59 days

Total

2

Last Release

171d ago

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

v1.0.1PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/samlitowitz-php-radix-tree-generator/health.svg)

```
[![Health](https://phpackages.com/badges/samlitowitz-php-radix-tree-generator/health.svg)](https://phpackages.com/packages/samlitowitz-php-radix-tree-generator)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)

PHPackages © 2026

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