Download the PHP package maarheeze/codegraph without Composer

On this page you can find all versions of the php package maarheeze/codegraph. 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 codegraph

CodeGraph

Make AI agents faster and cheaper to use on your codebase.

CodeGraph indexes your PHP code structure (classes, methods, functions, and relationships) and stores it locally. AI agents query this index instead of reading files.

Inspired by colbymchenry/codegraph and kha333n/laravel-code-graph

Result:

Ask your AI agent questions directly:

How It Works

  1. Index your codephp vendor/bin/codegraph index (one-time)
  2. AI agent uses it — Register CodeGraph as an MCP server (works with Claude Code and any MCP-compatible AI)
  3. Faster context — AI queries the index instead of reading files

Works with Claude Code, Cursor, and any AI supporting MCP protocol.

Installation

That's it. CodeGraph will:

  1. Create a .codegraph/ directory with SQLite database (should be ignored by git!)
  2. Scan your code (app/ and src/ directories by default)
  3. Extract symbols, relationships, and code structure
  4. Build the index

Optional: Auto-reindex on changes

For continuous development, keep CodeGraph in sync automatically:

This watches your code for changes and reindexes automatically. Press Ctrl+C to stop. To automatically initialize and index your codebase after dependencies are installed or updated, add the following to your composer.json:

Verify it worked:

This shows how many symbols, edges, and files were indexed.

Usage

CLI Search

Claude Code Integration

CodeGraph works with Claude Code via the MCP protocol.

Automatic Setup (Recommended)

Running php vendor/bin/codegraph init automatically:

  1. Creates .codegraph/ directory and SQLite database
  2. Detects your environment (Sail, Docker, or plain PHP)
  3. Configures .mcp.json with the correct MCP command
  4. Adds CodeGraph guidelines to your CLAUDE.md

That's it! Claude Code will automatically discover and use CodeGraph's tools.

Manual Setup (if needed)

If you need to manually configure .mcp.json:

Replace vendor/bin/sail with:

Then ask Claude Code:

Available tools:

Commands

init — Initialize CodeGraph in your project

Optional: Explicitly set MCP configuration (auto-detected by default):

If not specified, CodeGraph auto-detects your environment:

index — Index your code (tracks changes, only re-parses what changed)

watch — Auto-reindex when files change (useful during development)

status — See indexing statistics

mcp — Start MCP server (for Claude Code integration)

search — CLI symbol search

Configuration

Customize scan paths

Default: src/ and app/

Customize excludes

Default: vendor/, node_modules/, storage/

Re-index your code

CodeGraph tracks file hashes and only re-parses changed files:

To force full re-index:

What Gets Indexed

Symbols: Classes, interfaces, traits, enums, methods, functions, properties

Relationships: Method calls, function calls, constructors, inheritance (extends/implements/uses), parent calls

Metadata: File paths, line numbers, visibility (public/protected/private), static/abstract markers, method signatures

Known Limitations

Roadmap

Incremental Sync

CodeGraph uses file hashing to detect changes:

Only files that changed since last index are re-parsed. This makes indexing fast on large codebases.

To see what changed:

API Usage (PHP)

Database Schema

CodeGraph uses SQLite with the following tables:

Direct database queries are supported for custom analysis.

License

MIT


All versions of codegraph with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-json Version *
ext-pdo Version *
ext-pdo_sqlite Version *
nikic/php-parser Version ^5.0
symfony/finder Version ^8.0
symfony/console Version ^8.0
webmozart/assert Version ^2.3
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 maarheeze/codegraph contains the following files

Loading the files please wait ...