Skip to content
JS
Package

php-parser

Parse PHP code from JS and returns its AST

v3.7.0, 10 Jun 2026BSD-3-ClauseCommonJSTypes: BundledParsers and serialisers
$ npm install php-parser

Key numbers

As of 25 Sept 2026
Weekly downloads
404.9k
+110% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 months ago
v3.7.0
GitHub stars
565
75 forks
Open issues / PRs
14 / 20
Contributors
-
Commits, last 52 weeks
94

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 556k (28 Jul 2026)Low 116.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

404,877 downloads last week, 1,902,426 in the last month. The 12-month change of +110% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
653 in total
Latest version
3.7.0, 10 Jun 20263 months ago
First published
24 Dec 2014
Last push to GitHub
10 Sept 202614 days before the snapshot
Repository archived
No
Open issues
14
Open pull requests
20
Commits, last 52 weeks
94
Dependents on npm
129

Major versions

  1. v3 first release 3.0.0, 27 Mar 2020
  2. v2 first release 2.0.0, 4 Mar 2017
  3. v1 first release 1.0.0, 3 Jan 2017
  4. v0 first release 0.0.1, 24 Dec 2014

Recent releases

VersionPublished
3.7.010 Jun 2026
3.6.017 May 2026
3.5.129 Mar 2026
3.5.022 Mar 2026
3.4.021 Feb 2026
3.3.018 Feb 2026
3.2.510 Jul 2025
3.2.427 Jun 2025
3.2.317 Apr 2025
3.2.231 Dec 2024
3.2.110 Nov 2024
3.2.06 Nov 2024
3.1.57 Jun 2023
3.1.421 Mar 2023
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
826 kB
Dependencies (0)
None
npm install php-parser
  • jsDelivrhttps://cdn.jsdelivr.net/npm/php-parser@3.7.0/
  • unpkghttps://unpkg.com/php-parser@3.7.0/
  • esm.shhttps://esm.sh/php-parser@3.7.0
PackageWeekly downloadsGzipLast releaseModuleComparison
css-tree88.1m-6 months agoESM + CommonJS-
@webassemblyjs/wasm-parser37m-1 year agoESM + CommonJS-
chevrotain7.1m-1 month agoESM + CommonJS-
esprima85m-8 years agoCommonJS-
@webassemblyjs/wast-parser4m-1 year agoESM + CommonJS-
@bbob/parser35.5k-1 month agoESM + CommonJS-
snapdragon9.5m-5 years agoCommonJS-
snapdragon-node9.2m-7 years agoCommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.