PHPackages                             helmich/graphpizer-cli - 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. [Database &amp; ORM](/categories/database)
4. /
5. helmich/graphpizer-cli

ActiveLibrary[Database &amp; ORM](/categories/database)

helmich/graphpizer-cli
======================

Store PHP syntax trees in Neo4j graph structures

v1.0.0(10y ago)220LGPLPHPPHP &gt;= 5.5

Since Sep 24Pushed 10y ago2 watchersCompare

[ Source](https://github.com/martin-helmich/graphpizer-cli)[ Packagist](https://packagist.org/packages/helmich/graphpizer-cli)[ RSS](/packages/helmich-graphpizer-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

GraPHPizer: Analytics engine for PHP source code (CLI tool)
===========================================================

[](#graphpizer-analytics-engine-for-php-source-code-cli-tool)

**Disclaimer**: This project is actively developed and by no means stable. It is completely undocumented. I refuse to take any responsibility for any kind of havoc this program might wreak on your computer and to provide any kind of support.

Author and License
------------------

[](#author-and-license)

Martin Helmich
This project is [GPL-licensed](LICENSE).

**Background:** This project started off as part of my master's thesis in CS at the [University of Applied Sciences Osnabrück](https://www.hs-osnabrueck.de/). It has proven it's worth there and I'll probably continue to develop and maintain it.

What is GraPHPizer?
-------------------

[](#what-is-graphpizer)

This is a command-line tool that's designed for usage with the [GraPHPizer server application](https://github.com/martin-helmich/graphpizer-server). A general description of what GraPHPizer is and what it does can be found there.

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

[](#installation)

### Prerequisites

[](#prerequisites)

- PHP in version 5.5 or newer
- [Composer](http://getcomposer.org) in a halfway recent version
- A [GraPHPizer server](https://github.com/martin-helmich/graphpizer-server)running on a network-reachable machine

### Install using composer

[](#install-using-composer)

You can install the GraPHPizer CLI using Composer:

```
$ composer require helmich/graphpizer-cli
```

You can also install the CLI globally:

```
$ composer global require helmich/graphpizer-cli
```

After installation you will find a `graphpizer` executable in your *bin* dir (when installing locally, this will typically be `$PWD/vendor/bin`. When installing globally, it will be `$HOME/.composer/bin`).

Configuration
-------------

[](#configuration)

### CLI flags

[](#cli-flags)

The `graphpizer` command-line utility offers a variety of flags and parameters that can be set on invocation:

- `--graph-host` or `-H` configures the GraPHPizer server name. The default value is `localhost`.
- `--graph-port` or `-P` configures the GraPHPizer port. The default value is `9000`

### The `graphpizer.json` configuration file(s)

[](#the-graphpizerjson-configuration-files)

For a per-project configuration, you can also create a `graphpizer.json` file inside your project root directory. You can also create additional `graphpizer.json` files in sub-directories of your project; these configurations will be applied to that directory and it's sub-directories only.

See the [respective section in the GraPHPizer server documentation](https://github.com/martin-helmich/graphpizer-server/wiki/Source-import-configuration) for more information.

Usage
-----

[](#usage)

The `graphpizer` CLI tool offers a set of commands that can be called. The most important is the `import:ast` command which is invoked as follows:

```
graphpizer import:ast [--prune] ...

```

You can specify any number of diretories or files as arguments to the `import:ast` call. Furthermore, you can set the `--prune` flag when you don't want incremental source code import.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3880d ago

### Community

Maintainers

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

---

Top Contributors

[![martin-helmich](https://avatars.githubusercontent.com/u/2538958?v=4)](https://github.com/martin-helmich "martin-helmich (124 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/helmich-graphpizer-cli/health.svg)

```
[![Health](https://phpackages.com/badges/helmich-graphpizer-cli/health.svg)](https://phpackages.com/packages/helmich-graphpizer-cli)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M262](/packages/ssch-typo3-rector)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[bolt/core

🧿 Bolt Core

585142.5k54](/packages/bolt-core)

PHPackages © 2026

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