# @lezer/php

> Lezer-based PHP grammar

Latest version **1.0.6** (published 2026-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lezer/php
pnpm add @lezer/php
yarn add @lezer/php
bun add @lezer/php
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2026-08-31 |
| First published | 2021-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 379.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marijn Haverbeke |
| Maintainers | marijn |

## Links

- npm: https://www.npmjs.com/package/@lezer/php
- Repository: https://code.haverbeke.berlin/lezer/php
- npm.io page: https://npm.io/package/@lezer/php

## Dependencies (3)

- [@lezer/lr](https://npm.io/package/@lezer/lr.md) ^1.1.0
- [@lezer/common](https://npm.io/package/@lezer/common.md) ^1.2.0
- [@lezer/highlight](https://npm.io/package/@lezer/highlight.md) ^1.0.0

## Recent versions

- 1.0.6 (latest) — 2026-08-31
- 1.0.5 — 2025-09-23
- 1.0.4 — 2025-07-22
- 1.0.3 — 2025-07-07
- 1.0.2 — 2023-12-28
- 1.0.1 — 2023-01-18
- 1.0.0 — 2022-06-06
- 0.16.0 — 2022-04-20
- 0.15.0 — 2021-09-03

## README

# @lezer/php

This is a PHP grammar for the
[Lezer](https://lezer.codemirror.net/) parser system.

The grammar used is based in part on the corresponding [tree-sitter
grammar](https://github.com/tree-sitter/tree-sitter-php) and the [Zend
Yacc
grammar](https://github.com/php/php-src/src/branch/main/Zend/zend_language_parser.y).

The code is licensed under an MIT license.

---
_Source: https://npm.io/package/@lezer/php · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
