PHPackages                             phplrt/phplrt - 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. phplrt/phplrt

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

phplrt/phplrt
=============

PHP Language Recognition Tool

3.7.5(1y ago)23436.2k—7.5%6[3 issues](https://github.com/phplrt/phplrt/issues)5MITPHPPHP ^8.1CI passing

Since May 5Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/phplrt/phplrt)[ Packagist](https://packagist.org/packages/phplrt/phplrt)[ Docs](https://phplrt.org)[ RSS](/packages/phplrt-phplrt/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (79)Used By (5)

 [ ![Phplrt](https://avatars.githubusercontent.com/u/49816277?s=256&v=4) ](https://phplrt.org/)

 [![PHP 7.4+](https://camo.githubusercontent.com/cdec708ef4278e6111fe6f47112f468ab0887bb8ce3d2e759294335f52ffbb03/68747470733a2f2f706f7365722e707567782e6f72672f7068706c72742f7068706c72742f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/phplrt/phplrt) [![Latest Stable Version](https://camo.githubusercontent.com/b09bfe1fa6aa698c69fcf266b0556e1edb4f1aa058f81c2ab8c812424f8a0329/68747470733a2f2f706f7365722e707567782e6f72672f7068706c72742f7068706c72742f76657273696f6e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/phplrt/phplrt) [![Latest Unstable Version](https://camo.githubusercontent.com/6b2c081866e590267a385a6538785e068905f9865bf2733b7e08e70e2b95df9d/68747470733a2f2f706f7365722e707567782e6f72672f7068706c72742f7068706c72742f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/phplrt/phplrt) [![Total Downloads](https://camo.githubusercontent.com/22d341f9ec6f5c6dc80b47331832199c443bf4bb53b7b6d101036cb539cb5e82/68747470733a2f2f706f7365722e707567782e6f72672f7068706c72742f7068706c72742f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/phplrt/phplrt) [![License MIT](https://camo.githubusercontent.com/338b65ddf29629c54e1e13f1ba6c5a5b0f17feb704d48db26768ad3c9840372f/68747470733a2f2f706f7365722e707567782e6f72672f7068706c72742f7068706c72742f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://raw.githubusercontent.com/phplrt/phplrt/master/LICENSE.md)

 [![](https://github.com/phplrt/phplrt/workflows/build/badge.svg?branch=3.x&event=push)](https://github.com/phplrt/phplrt/actions)

Introduction
------------

[](#introduction)

The phplrt is a set of tools for programming languages recognition. The library provides lexer, parser, grammar compiler, library for working with errors, text analysis and so on.

Installation
------------

[](#installation)

Phplrt is available as composer repository and can be installed using the following command in a root of your project:

```
$ composer require phplrt/phplrt
```

More detailed installation instructions [are here](https://phplrt.org/docs/installation).

Documentation
-------------

[](#documentation)

-

Quick Start
-----------

[](#quick-start)

First, we will create the grammar for our parser.

> You can read more about the grammar syntax [here](https://phplrt.org/docs/compiler/grammar).

```
