PHPackages                             microsoft/tolerant-php-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. microsoft/tolerant-php-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

microsoft/tolerant-php-parser
=============================

Tolerant PHP-to-AST parser designed for IDE usage scenarios

v0.1.2(3y ago)89611.5M—1.5%83[27 issues](https://github.com/Microsoft/tolerant-php-parser/issues)[9 PRs](https://github.com/Microsoft/tolerant-php-parser/pulls)17MITPHPPHP &gt;=7.2CI passing

Since Jun 8Pushed 1y ago45 watchersCompare

[ Source](https://github.com/Microsoft/tolerant-php-parser)[ Packagist](https://packagist.org/packages/microsoft/tolerant-php-parser)[ RSS](/packages/microsoft-tolerant-php-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (37)Used By (17)

Tolerant PHP Parser
===================

[](#tolerant-php-parser)

[![CI](https://github.com/microsoft/tolerant-php-parser/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/microsoft/tolerant-php-parser/actions/workflows/main.yml)

This is an early-stage PHP parser designed, from the beginning, for IDE usage scenarios (see [Design Goals](#design-goals) for more details). There is still a ton of work to be done, so at this point, this repo mostly serves as an experiment and the start of a conversation.

[![image](https://cloud.githubusercontent.com/assets/762848/19023070/4ab01c92-889a-11e6-9bb5-ec1a6816aba2.png)](https://cloud.githubusercontent.com/assets/762848/19023070/4ab01c92-889a-11e6-9bb5-ec1a6816aba2.png)

This is the v0.1 branch, which changes data structures to support syntax added after the initial 0.0.x release line.

Get Started
-----------

[](#get-started)

After you've [configured your machine](docs/GettingStarted.md), you can use the parser to generate and work with the Abstract Syntax Tree (AST) via a friendly API.

```
