Skip to main content

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 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


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.2.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_php-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file codemap_php-0.2.0.tar.gz.

File metadata

  • Download URL: codemap_php-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_php-0.2.0.tar.gz
Algorithm Hash digest
SHA256 64e0b79607fdfa86556bba2763453b0cae206437d18354c1b7a0519faa168fb4
MD5 1862cbba08f19643d65f29d2974cad2e
BLAKE2b-256 e2aef65914d137cab51b2b0ba723e014adc8865ab9d37a069953f50b22b198d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_php-0.2.0.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_php-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: codemap_php-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_php-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56410ee7b41810eb5f7b6b3584106cfd26d87043496507b36c86130f52502dd5
MD5 04ccafcd98a2b47a9c456b1bba112420
BLAKE2b-256 b7ed62e80478afec78d52852dd4277441804c3a0b0ba7e2ba80e593ea77bca1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_php-0.2.0-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page