PHP indexer plugin for CodeMap
Project description
codemap-php
A PHP indexer for CodeMap, shipped as an independent PyPI package.
What it captures
Backed by tree-sitter-php:
| AST node | Symbol kind |
|---|---|
class_declaration |
class (with extra.php_kind=class) |
interface_declaration |
class (with extra.php_kind=interface) |
trait_declaration |
class (with extra.php_kind=trait) |
enum_declaration |
class (with extra.php_kind=enum) |
method_declaration (inside type) |
method |
function_definition (top level) |
function |
property_declaration (inside type) |
field |
const_declaration (top level) |
variable |
const_declaration (inside type) |
field |
namespace_definition is captured as extra.namespace on every
symbol-producing type.
Install
pip install "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/codemap-php"
SymbolID encoding
scip-php . . . src/App/User.php/User#hello().
Limits
- Use statements aren't yet expanded into namespace-resolved edges.
- PHPDoc annotations are not parsed.
- Anonymous classes are skipped.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codemap_php-0.1.0a1.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codemap_php-0.1.0a1.tar.gz.
File metadata
- Download URL: codemap_php-0.1.0a1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46638ad13ab9f5bdfc2cc65dbb48b359b47f66f8abb7ecb344222a2c7ecee8ea
|
|
| MD5 |
7a0b50c4ed3d49e2e835cac3e89237dd
|
|
| BLAKE2b-256 |
c62ac1dfd02175c6a6745453a2a4b6fe4f019028d4bb78990b3c1d36f26aa2e6
|
File details
Details for the file codemap_php-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: codemap_php-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5923a089ee09ad7de40d879345f9a49c37e6c9cadb9287434e7d14fe34a4aebc
|
|
| MD5 |
0116c83cda6626b3c64c861f7521a529
|
|
| BLAKE2b-256 |
4d2d4329643d83a62c5e7ef4e5883fdc2fc2cd8eb794e185e1acdca002d85c24
|