PHPackages                             krak/lex - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. krak/lex

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

krak/lex
========

Functional Lexing library

v1.0.0(6y ago)37.5k2MITPHP

Since Apr 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/krakphp/lex)[ Packagist](https://packagist.org/packages/krak/lex)[ RSS](/packages/krak-lex/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (2)

Lex
===

[](#lex)

Lex is a library for lexical analysis in PHP. Currently, only simple regular expression lexers are available; but considering that you shouldn't be lexing anything complex in php, this should be fine :).

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

[](#installation)

```
composer require krak/lex

```

Usage
-----

[](#usage)

```
