Package
php-parser
Parse PHP code from JS and returns its AST
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
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
- v3 first release 3.0.0, 27 Mar 2020
- v2 first release 2.0.0, 4 Mar 2017
- v1 first release 1.0.0, 3 Jan 2017
- v0 first release 0.0.1, 24 Dec 2014
Recent releases
| Version | Published |
|---|---|
| 3.7.0 | 10 Jun 2026 |
| 3.6.0 | 17 May 2026 |
| 3.5.1 | 29 Mar 2026 |
| 3.5.0 | 22 Mar 2026 |
| 3.4.0 | 21 Feb 2026 |
| 3.3.0 | 18 Feb 2026 |
| 3.2.5 | 10 Jul 2025 |
| 3.2.4 | 27 Jun 2025 |
| 3.2.3 | 17 Apr 2025 |
| 3.2.2 | 31 Dec 2024 |
| 3.2.1 | 10 Nov 2024 |
| 3.2.0 | 6 Nov 2024 |
| 3.1.5 | 7 Jun 2023 |
| 3.1.4 | 21 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- jsDelivr
https://cdn.jsdelivr.net/npm/php-parser@3.7.0/ - unpkg
https://unpkg.com/php-parser@3.7.0/ - esm.sh
https://esm.sh/php-parser@3.7.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| css-tree | 88.1m | - | 6 months ago | ESM + CommonJS | - |
| @webassemblyjs/wasm-parser | 37m | - | 1 year ago | ESM + CommonJS | - |
| chevrotain | 7.1m | - | 1 month ago | ESM + CommonJS | - |
| esprima | 85m | - | 8 years ago | CommonJS | - |
| @webassemblyjs/wast-parser | 4m | - | 1 year ago | ESM + CommonJS | - |
| @bbob/parser | 35.5k | - | 1 month ago | ESM + CommonJS | - |
| snapdragon | 9.5m | - | 5 years ago | CommonJS | - |
| snapdragon-node | 9.2m | - | 7 years ago | CommonJS | - |
Indexability: Indexed.