Skip to content

pr00se/parser-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I was looking to do some simple find/replace refactoring but rather than spend my time crafting clever regexes I decided I'd rather play around with the PHP AST and php-parser.

MutatingVisitor visits each node and conditionally applies a given mutation. MutatingParser is a wrapper around the php-parser boilerplate.

Get dependencies with composer install

array.php is an example that replaces all array() notation with [] notation.

About

Fun with php-parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages