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.4.6.tar.gz (5.1 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.4.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codemap_php-0.4.6.tar.gz
  • Upload date:
  • Size: 5.1 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.4.6.tar.gz
Algorithm Hash digest
SHA256 dd9d49acac355fefdde2f2fc708d46069c9b785891f6fd8c7b5bc1c753ec3640
MD5 193317696dc5a123f19c70bd77dbbd38
BLAKE2b-256 9b903263280b427169ecba804c8983fa5d39cbeb01f0a082269def4303a76a90

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_php-0.4.6.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.4.6-py3-none-any.whl.

File metadata

  • Download URL: codemap_php-0.4.6-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.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0dced14be90659533b940c7ac0b0a235d08e02fc61b39e8283247c0a45032553
MD5 19e8fb8106df7eeb5346862c8d9ec40e
BLAKE2b-256 66209fc18aa391256a7bb8f966f629bb6cf478b47b85ccf793d5b41d659e6e89

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_php-0.4.6-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