Download the PHP package hbenabdallah/phpgraph without Composer

On this page you can find all versions of the php package hbenabdallah/phpgraph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpgraph

phpgraph

A knowledge graph of your PHP codebase, for AI coding agents.

CI Packagist version Downloads PHP 8.5+ to run from source License: MIT

English · Français


A coding agent in a PHP project it does not know searches names with grep, reads file after file, and guesses when the answer goes through something a name search does not show: an interface, the service container, a message bus, a route. phpgraph parses the project once and gives the agent the answer from a graph, over MCP, in one call. In the benchmarks it paid off on the largest project measured, for a question about the impact of a change; on smaller projects the same kind of question cost more tokens with it.

Demo

A 68-second video, the same question to Claude Code with and without phpgraph, one real run each: youtu.be/Cv4ULkN3FF0.

No LLM, no network, no embeddings: your code never leaves your machine, and phpgraph parses it without running it. Every fact says how sure it is (EXTRACTED, INFERRED or AMBIGUOUS), and what phpgraph could not link is reported.

Where it helps and where it doesn't

Akeneo PIM (8,416 PHP files), task: list every class that must change when GetCategoryInterface::byCode() takes a second parameter. Claude Code 2.1.325 with Sonnet, 15 November 2026: phpgraph 2.3.0, 6 runs; without phpgraph, 3 runs:

With phpgraph Without
Correct answers 6/6 3/3
Tokens per run, median 110,254 170,660
Tokens per run, range 87,643 to 181,273 127,193 to 176,783
Time per run 15.9 to 27.9 s 15.9 to 26.8 s

Where it helps: the same answer for 35 % fewer tokens (median) on the largest project; 3 runs out of 6 answered from impact_of alone, the others checked it with one to three searches. Where it doesn't: on the 6 impact tasks of the benchmark, with 2.2.0, phpgraph gave more right answers (17/18 against 15/18) but used 9.8 % more tokens in total, from −30 % to +36 % per task, and time was not better. Results vary from run to run: with 2.2.0 the same Akeneo task took 87,000 to 222,000 tokens. Every result, grouped by version, with the method: docs/BENCHMARKS.md.

Quick start

1. Install the executable (Linux, macOS; it carries its own PHP, none needed):

It checks the SHA-256 and installs to ~/.local/bin. Windows, Composer, PHAR and Docker: docs/INSTALL.md.

2. Connect Claude Code. From your project directory:

It prints a claude mcp add phpgraph -- ... command with the paths filled in (run it), an .mcp.json to share with the team instead, and a line for CLAUDE.md telling the agent to call phpgraph before grep. Codex, Cursor, Sherpa and other MCP clients: phpgraph mcp-config codex|cursor|sherpa|json.

3. Ask. The graph is built on the first call, then kept up to date as you edit.

What you can ask

What it is not

The full list: docs/LIMITATIONS.md.

Documentation

License

MIT.


All versions of phpgraph with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
nikic/php-parser Version ^5.0
phpstan/phpdoc-parser Version ^2.3
symfony/console Version ^7.0
symfony/finder Version ^7.0
symfony/yaml Version ^7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hbenabdallah/phpgraph contains the following files

Loading the files please wait ...