Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-08-27 15:19 UTC

tree-sitter / tree-sitter-php

PHP grammar for tree-sitter

JavaScript · C · PHPMIT★ 235 stars⑂ 72 forkssince Nov 2017View on GitHub ↗

tree-sitter/tree-sitter-php holds a health index of 75 out of 100, placing it in the Good band. It scores highest on Sustainability & Governance (78/100) and lowest on Vitality (48/100). It was last updated 37 days ago. 2 contributors account for most of its recent work.

75
overall / 100
Good

Software health index

Metrics are grouped into weighted categories on one standardized 1–100 scale. Overall starts as their weighted mean, calibrated against the distribution of the public record so bands carry percentile meaning; when public evidence triggers the High-Risk Jurisdiction Policy, the rating is adjusted and receives an At Risk ceiling of 34.

75
Exceptional93-100The record's top tier (≈ top 5%); essentially all checked criteria met
Excellent80-92Strong across the board; minor gaps
Good65-79Healthy; gaps are limited and manageable
Moderate50-64Acceptable with notable gaps; review recommended
Weak35-49Material weaknesses across several areas
At Risk20-34Significant weaknesses; adoption warrants caution
Critical1-19Severe problems (abandoned, single-maintainer, no hygiene)
VitalityCommunity &AdoptionSustainability &GovernanceEngineeringQualitySecurityAI Readiness

Score profile

Each axis is a category. The shape matters more than the average — a healthy subject fills the whole shape, while a spike-and-crater profile means strength in one dimension is masking risk in another.

The weighted overall 65 is calibrated to 75 on the published index scale (record calibration 2026-08-02).

Ownership

tree-sitterOrganization
2,654 followers56 public repossince Feb 2016

This repository is backed by an organization — shared, accountable stewardship that can outlive any single maintainer.

Package ecosystems

RegistryPackageVersionDownloads / moVersionsLast publishTags
Gogithub.com/tree-sitter/tree-sitter-phpv0.24.2-40374 days ago—
crates.iotree-sitter-php0.24.2613,38923374 days agoincrementalparsingphptree-sittertext-editors
npmtree-sitter-php0.24.2575,66736374 days agoincrementalparsingtree-sitterphp
PyPItree-sitter-php0.24.120,520,39217375 days agoincrementalparsingtree-sitterphp

Metrics by category

Vitality

Is the project alive — is code being written and are releases shipping?

48Weak · 21% of overall
How it's scored
18/36Push recency — last push 37 days ago
7.6/36Commit cadence — 11/52 weeks with commits
11.1/18Commit volume — 16 commits in the last year
2/10OpenSSF Scorecard: Maintained — 2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2
Inputs used
commits_last_year16
human_commit_share0.92
days_since_last_push37
active_weeks_last_year11
How it's scored
27/27Ships releases — 18 releases published
7.2/36Release recency — latest release 374 days ago
27/27Release cadence — a release every ~38.8 days
0/10OpenSSF Scorecard: Signed-Releases — Project has not signed or included provenance with any releases.
Inputs used
releases_count18
latest_release_tagv0.24.2
releases_from_tagsno
days_since_latest_release374
mean_days_between_releases38.8

Community & Adoption

Does the project have users, downloads, attention, and a welcoming setup for contributors?

66Good · 17% of overall
How it's scored
38.4/60Stars — 235 stars
15.4/25Forks — 72 forks
5.8/15Watchers — 12 watchers
Inputs used
forks72
stars235
watchers12
growth_stateunverified
growth_factor_pct100
growth_unverified_reasonno_history
How it's scored
22.5/22.5README
22.5/22.5License — recognized license (MIT)
0/18CONTRIBUTING guide
0/13.5Code of conduct
0/7.2Issue template
0/6.3PR template
Inputs used
has_readmeyes
has_licenseyes
readme_badges0
has_contributingno
has_issue_templateno
has_code_of_conductno
readme_badge_services—
has_pull_request_templateno
How it's scored
80/80Monthly downloads — 21,709,448 downloads/month across crates, go, npm, pypi
0/20Registry dependents — not reported by this ecosystem
Inputs used
packagesgithub.com/tree-sitter/tree-sitter-php, tree-sitter-php, tree-sitter-php, tree-sitter-php
dependents—
ecosystemscrates, go, npm, pypi
total_downloads4,490,148
monthly_downloads21,709,448
unverified_packages_excluded—
Excluded from scoring (no data or not applicable): Registry dependents. Remaining weights renormalized.

Sustainability & Governance

Will the project survive its people — bus factor, responsiveness, who backs it, and package upkeep?

78Good · 23% of overall
How it's scored
25.2/54Bus factor — 2 contributor(s) cover half of all commits
14.4/22.5Commit distribution — top contributor authored 36% of commits
13.5/13.5Contributor breadth — 35 contributors
10/10OpenSSF Scorecard: Contributors — project has 23 contributing companies or organizations
Inputs used
bus_factor2
contributors_sampled35
top_contributor_share0.362
How it's scored
41.2/42Issue resolution — 98% of issues closed
27.7/30PR acceptance — 178/193 decided PRs merged
0/13Newcomer PR acceptance — no first-time contributor's PR decided in 30d
15/15OpenSSF Scorecard: Code-Review — all changesets reviewed
Inputs used
merged_prs178
open_issues2
closed_issues106
prs_merged_7d0
prs_decided_7d0
prs_merged_30d0
prs_decided_30d0
issue_closed_ratio0.981
closed_unmerged_prs15
first_time_authors_30d0
first_time_prs_merged_30d0
first_time_prs_decided_30d0
Excluded from scoring (no data or not applicable): Newcomer PR acceptance. Remaining weights renormalized.
How it's scored
30/30Ownership backing — organization-owned
0/20Verified domain
24.6/25Owner reach — 2,654 followers of tree-sitter
24.8/25Track record — 56 public repos, account ~10 yr old
Inputs used
followers2,654
owner_typeOrganization
is_verifiedno
owner_logintree-sitter
public_repos56
account_age_days3,848
How it's scored
25/25Published & resolvable — 4 package(s) on crates, go, npm, pypi
14/35Publish recency — latest publish 374 days ago
20/20Version history — 40 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
packagesgithub.com/tree-sitter/tree-sitter-php, tree-sitter-php, tree-sitter-php, tree-sitter-php
ecosystemscrates, go, npm, pypi
any_deprecatedno
min_days_since_publish374

Engineering Quality

Are baseline engineering and documentation practices in place?

77Good · 19% of overall
How it's scored
24/24CI workflows — 4 workflow(s)
24/24Tests present
16/16Linter config — eslint.config.mjs
0/9.6Pre-commit hooks
6.4/6.4.editorconfig
8/20OpenSSF Scorecard: CI-Tests — 6 out of 15 merged PRs checked by a CI test -- score normalized to 4
Inputs used
has_ciyes
has_testsyes
has_editorconfigyes
has_linter_configyes
has_precommit_configno
How it's scored
30/30README
0/25Documentation directory
15/15Documentation / homepage site — https://docs.rs/tree-sitter-php
10/10Repository description
10/10Topics — 3 topics
10/10Wiki
Inputs used
topicsphp, tree-sitter, parser
has_wikiyes
homepage—
docs_sitehttps://docs.rs/tree-sitter-php
has_readmeyes
has_docs_dirno
has_descriptionyes

Security

Are visible security and supply-chain practices strong, without unresolved high-risk jurisdiction exposure?

55Moderate · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
3.8/7.5Branch-Protection — branch protection is not maximal on development and all release branches
1/2.5CI-Tests — 6 out of 15 merged PRs checked by a CI test -- score normalized to 4
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
7.5/7.5Code-Review — all changesets reviewed
2.5/2.5Contributors — project has 23 contributing companies or organizations
10/10Dangerous-Workflow — no dangerous workflow patterns detected
7.5/7.5Dependency-Update-Tool — update tool detected
0/5Fuzzing — project is not fuzzed
2.5/2.5License — license file detected
1.5/7.5Maintained — 2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2
0/5Packaging — no data
0.5/5Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 1
0/5SAST — SAST tool is not run on all commits -- score normalized to 0
0/5Security-Policy — security policy file not detected
0/7.5Signed-Releases — Project has not signed or included provenance with any releases.
0/7.5Token-Permissions — detected GitHub workflow tokens with excessive permissions
0/7.5Vulnerabilities — 17 existing vulnerabilities detected
Inputs used
sourceopenssf_scorecard
checks_evaluated17
scorecard_versionv5.5.0
checks_inconclusive1
scorecard_aggregate4.4
Excluded from scoring (no data or not applicable): Packaging. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
0/25Indirect dependencies free of known advisories — transitive set not separable from development and test dependencies in this scope
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
sourceosv
advisories17
affected_packages7
assessed_packages149
unassessed_packages0
affected_by_severitycritical 1, high 4, moderate 2
direct_affected_packages0
Excluded from scoring (no data or not applicable): Indirect dependencies free of known advisories, No advisories left outstanding. Remaining weights renormalized. Matched 149 resolved dependencies against OSV. This repository publishes no package the index resolves, so the repository dependency graph was assessed instead. That graph mixes development and test pins with shipped dependencies, so only the declared runtime dependencies are scored; transitive findings are reported as context and excluded from the score. Reachability is not analyzed.

AI Readiness

How well is the repo equipped to be developed and maintained with AI coding agents? Carries a deliberately small weight (4%): agent tooling is a real maintenance signal, but a repository with none can still reach 100/100.

66Good · 4% of overall
How it's scored
0/45Agent instructions — no CLAUDE.md / AGENTS.md / editor rules
0/15Machine-readable docs (llms.txt)
40/40Legible commit history — 77 of 92 human commits state their intent (structured subject or explanatory body)
Inputs used
has_llms_txtno
llms_txt_url—
legible_history_share0.837
agent_instruction_files—
agent_instruction_max_bytes—
How it's scored
18/18One-command bootstrap — Makefile, php/Makefile, php_only/Makefile
22/22Automated tests
11/11Lint / format config — eslint.config.mjs
11/11Static type checking — bindings/python/tree_sitter_php/py.typed
10/10Reproducible environment — lockfile
0/10Demonstrated agent practice — no agent-authored commits among the last 100
8/8Automated maintenance — 8 of the last 100 commits are automated dependency updates
1/10OpenSSF Scorecard: Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 1
Inputs used
has_nixno
has_testsyes
lockfilesCargo.lock, go.sum, package-lock.json
has_dockerfileno
typed_languageno
bootstrap_filesMakefile, php/Makefile, php_only/Makefile
has_devcontainerno
has_linter_configyes
typecheck_configsbindings/python/tree_sitter_php/py.typed
agent_commit_share0
toolchain_manifestsCargo.toml, go.mod
dependency_bot_commit_share0.08
How it's scored
27/45Type-checkable code — JavaScript with type-check config (bindings/python/tree_sitter_php/py.typed)
52.4/55Manageable file sizes — 2/42 source files over 60KB
Inputs used
primary_languageJavaScript
largest_source_bytes7,283,963
source_files_sampled42
oversized_source_files2

Key facts

235GitHub stars
35contributors
16commits, last 12 months
37days since last push
18releases
2bus factor
2open issues
crates.io, Go, npm, PyPIpackage ecosystems

Data collection warnings

  • Star history unavailable: GitHub GraphQL error: Resource not accessible by personal access token

More detail

Star and fork history 0 ★ / 72 ⇿
0Stars
72Forks
18Releases

When each star and fork was added, collected from GitHub and bucketed by day. Cumulative growth sits directly above the daily additions it is made of, so the two read against each other: steady organic accretion looks nothing like an abrupt, short-lived burst. Where that difference is measurable, it is reported as growth authenticity.

01325385063756922019-072023-012026-08
Major 0Minor 3Patch 15

Each point covers 7 days.

OpenSSF Scorecard 4.4 / 10
4.4aggregate

Independent, tool-agnostic security assessment from the open-source OpenSSF Scorecard. Each check rewards a security practice, not a specific vendor's tool. Checks Scorecard could not determine are marked n/a and excluded from the security score (never counted as zero).Scorecard v5.5.0 · 2026-08-27 15:19 UTC

10Binary-Artifactsno binaries found in the repo
5Branch-Protectionbranch protection is not maximal on development and all release branches
4CI-Tests6 out of 15 merged PRs checked by a CI test -- score normalized to 4
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
10Code-Reviewall changesets reviewed
10Contributorsproject has 23 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
10Dependency-Update-Toolupdate tool detected
0Fuzzingproject is not fuzzed
10Licenselicense file detected
2Maintained2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2
n/aPackagingpackaging workflow not detected
1Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 1
0SASTSAST tool is not run on all commits -- score normalized to 0
0Security-Policysecurity policy file not detected
0Signed-ReleasesProject has not signed or included provenance with any releases.
0Token-Permissionsdetected GitHub workflow tokens with excessive permissions
0Vulnerabilities17 existing vulnerabilities detected
Direct dependencies 4
RegistryPackageVersion constraintManifest
crates.iotree-sitter-language0.1Cargo.toml
Gogithub.com/tree-sitter/go-tree-sitterv0.25.0go.mod
npmnode-addon-api^8.2.2package.json
npmnode-gyp-build^4.8.2package.json
All dependencies 149

Full resolved dependency set from the GitHub dependency graph: 4 direct and 145 indirect (transitive) packages. The transitive closure is complete when the repository commits a lockfile.

RegistryPackageVersionRelation
crates.iotree-sitter-language0.1.2direct
Gogithub.com/tree-sitter/go-tree-sitter0.25.0direct
npmnode-addon-api8.3.1direct
npmnode-gyp-build4.8.4direct
crates.ioaho-corasick1.1.3indirect
crates.iocc1.2.25indirect
crates.ioequivalent1.0.2indirect
crates.iohashbrown0.15.3indirect
crates.ioindexmap2.9.0indirect
crates.ioitoa1.0.15indirect
crates.iomemchr2.7.4indirect
crates.ioproc-macro21.0.95indirect
crates.ioquote1.0.40indirect
crates.ioregex1.11.1indirect
crates.ioregex-automata0.4.8indirect
crates.ioregex-syntax0.8.5indirect
crates.ioryu1.0.20indirect
crates.ioserde1.0.219indirect
crates.ioserde_derive1.0.219indirect
crates.ioserde_json1.0.140indirect
crates.ioshlex1.3.0indirect
crates.iostreaming-iterator0.1.9indirect
crates.iosyn2.0.101indirect
crates.iotree-sitter0.25.5indirect
crates.iounicode-ident1.0.18indirect
Gogithub.com/mattn/go-pointer0.0.1indirect
npm@es-joy/jsdoccomment0.50.2indirect
npm@eslint-community/eslint-utils4.7.0indirect
npm@eslint-community/regexpp4.12.1indirect
npm@eslint/config-array0.20.0indirect
npm@eslint/config-helpers0.2.2indirect
npm@eslint/core0.14.0indirect
npm@eslint/eslintrc3.3.1indirect
npm@eslint/js9.27.0indirect
npm@eslint/object-schema2.1.6indirect
npm@eslint/plugin-kit0.3.1indirect
npm@humanfs/core0.19.1indirect
npm@humanfs/node0.16.6indirect
npm@humanwhocodes/module-importer1.0.1indirect
npm@humanwhocodes/retry0.3.1indirect
npm@humanwhocodes/retry0.4.3indirect
npm@types/estree1.0.7indirect
npm@types/json-schema7.0.15indirect
npm@typescript-eslint/types8.33.0indirect
npmacorn8.14.1indirect
npmacorn-jsx5.3.2indirect
npmajv6.12.6indirect
npmansi-styles4.3.0indirect
npmare-docs-informative0.0.2indirect
npmargparse2.0.1indirect
npmbalanced-match1.0.2indirect
npmbase64-js1.5.1indirect
npmbl4.1.0indirect
npmbrace-expansion1.1.11indirect
npmbuffer5.7.1indirect
npmcallsites3.1.0indirect
npmchalk4.1.2indirect
npmchownr1.1.4indirect
npmcolor-convert2.0.1indirect
npmcolor-name1.1.4indirect
npmcomment-parser1.4.1indirect
npmconcat-map0.0.1indirect
npmcross-spawn7.0.6indirect
npmdebug4.4.1indirect
npmdeep-is0.1.4indirect
npmend-of-stream1.4.4indirect
npmescape-string-regexp4.0.0indirect
npmeslint9.27.0indirect
npmeslint-config-treesitter1.0.2indirect
npmeslint-plugin-jsdoc50.6.17indirect
npmeslint-scope8.3.0indirect
npmeslint-visitor-keys3.4.3indirect
npmeslint-visitor-keys4.2.0indirect
npmespree10.3.0indirect
npmesquery1.6.0indirect
npmesrecurse4.3.0indirect
npmestraverse5.3.0indirect
npmesutils2.0.3indirect
npmfast-deep-equal3.1.3indirect
npmfast-json-stable-stringify2.1.0indirect
npmfast-levenshtein2.0.6indirect
npmfile-entry-cache8.0.0indirect
npmfind-up5.0.0indirect
npmflat-cache4.0.1indirect
npmflatted3.3.3indirect
npmfs-constants1.0.0indirect
npmglob-parent6.0.2indirect
npmglobals14.0.0indirect
npmhas-flag4.0.0indirect
npmieee7541.2.1indirect
npmignore5.3.2indirect
npmimport-fresh3.3.1indirect
npmimurmurhash0.1.4indirect
npminherits2.0.4indirect
npmis-extglob2.1.1indirect
npmis-glob4.0.3indirect
npmisexe2.0.0indirect
npmjs-yaml4.1.0indirect
npmjsdoc-type-pratt-parser4.1.0indirect
npmjson-buffer3.0.1indirect
npmjson-schema-traverse0.4.1indirect
npmjson-stable-stringify-without-jsonify1.0.1indirect
npmkeyv4.5.4indirect
npmlevn0.4.1indirect
npmlocate-path6.0.0indirect
npmlodash.merge4.6.2indirect
npmminimatch3.1.2indirect
npmminimist1.2.8indirect
npmmkdirp-classic0.5.3indirect
npmms2.1.3indirect
npmnatural-compare1.4.0indirect
npmnode-abi3.75.0indirect
npmnpm-run-path3.1.0indirect
npmonce1.4.0indirect
npmoptionator0.9.4indirect
npmp-limit3.1.0indirect
npmp-locate5.0.0indirect
npmparent-module1.0.1indirect
npmparse-imports-exports0.2.4indirect
npmparse-statements1.0.11indirect
npmpath-exists4.0.0indirect
npmpath-key3.1.1indirect
npmprebuildify6.0.1indirect
npmprelude-ls1.2.1indirect
npmpump3.0.2indirect
npmpunycode2.3.1indirect
npmreadable-stream3.6.2indirect
npmresolve-from4.0.0indirect
npmsafe-buffer5.2.1indirect
npmsemver7.7.2indirect
npmshebang-command2.0.0indirect
npmshebang-regex3.0.0indirect
npmspdx-exceptions2.5.0indirect
npmspdx-expression-parse4.0.0indirect
npmspdx-license-ids3.0.21indirect
npmstring_decoder1.3.0indirect
npmstrip-json-comments3.1.1indirect
npmsupports-color7.2.0indirect
npmtar-fs2.1.3indirect
npmtar-stream2.2.0indirect
npmtree-sitter0.22.4indirect
npmtree-sitter-cli0.25.5indirect
npmtype-check0.4.0indirect
npmuri-js4.4.1indirect
npmutil-deprecate1.0.2indirect
npmwhich2.0.2indirect
npmword-wrap1.2.5indirect
npmwrappy1.0.2indirect
npmyocto-queue0.1.0indirect
Dependency advisories 7

This repository publishes no package the index resolves, so its own dependency graph was assessed — 149 packages, which also include development and test pins that never ship: 7 carry known advisories, of which 0 are direct.

PackageVersionRelationSeverityAdvisoriesFixed in
flatted3.3.3indirectcritical23.4.2
brace-expansion1.1.11indirecthigh55.0.9
js-yaml4.1.0indirecthigh44.3.1
minimatch3.1.2indirecthigh310.2.3
tar-fs2.1.3indirecthigh13.1.1
@eslint/plugin-kit0.3.1indirectmoderate10.3.4
ajv6.12.6indirectmoderate18.18.0

An advisory means the version recorded in the dependency graph falls inside an advisory’s affected range. Reachability is not analysed, and the graph includes development and test pins — a finding may concern tooling rather than shipped software.

Raw JSON report machine-readable

Feedback

Spotted something off in this report, or have thoughts to share? Wrong measurements, missed tooling, ideas, questions — anything is welcome. Every message is read and gets a response.

The message is kept through sign-in.

Scores are signals, not warranties. They reflect publicly visible practices on GitHub — not a code audit, and not a security guarantee.

Missing data is excluded and weights renormalized, never scored as zero. Methodology is versioned and open: metrics v2.10.0, schema v0.34.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statistics — Go, crates.io, npm, PyPI.