dev-master
9999999-dev https://github.com/nicolas-grekas/Patchwork-PHP-ParserFast and extensible PHP code analysis and transformation
(Apache-2.0 or GPL-2.0)
The Requires
- php >=5.3.0
parser php tokenizer
Wallogit.com
2017 © Pedro Peláez
Fast and extensible PHP code analysis and transformation
Patchwork PHP Parser is aimed at building fast, memory efficient and highly modular PHP code transformations and analysis. It is written for PHP 5.3 around the tokenizer extension., (*1)
It can be used for example to:, (*2)
As an illustrative example, it can backport namespaces and closures and should easily be able to compile itself to PHP 5.2., (*3)
Although it is written for PHP 5.3, it can parse PHP 5.4 code and already has backports for the short array syntax, the binary number notation and enabling the short open echo tag regardless of the short_open_tag ini setting., (*4)
Patchwork PHP Parser is free software; you can redistribute it and/or modify it under the terms of the (at your option): - Apache License v2.0, or - GNU General Public License v2.0., (*5)
This code is extracted from the Patchwork framework, where it has been proven stable and flexible enough to implement many kind of code transformations., (*6)
It is released here standalone in the hope that it can be used in a different context successfully!, (*7)
Fast and extensible PHP code analysis and transformation
(Apache-2.0 or GPL-2.0)
parser php tokenizer