Update README.md

This commit is contained in:
Vadym Slizov 2019-03-06 10:35:38 +02:00 committed by GitHub
parent d07e234393
commit e317dd23fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,38 +23,7 @@ Features:
- Parsing syntax-invalid PHP files
- Saving and printing free-floating comments and whitespaces
Roadmap
-------
- Control Flow Graph (CFG)
- PhpDocComment parser
- Stabilize api
Install
-------
```
go get github.com/z7zmey/php-parser
```
CLI
---
```
php-parser [flags] <path> ...
```
| flag | type | description |
|-------|------|----------------------------------------------|
| -d |string| dump format: [custom, go, json, pretty-json] |
| -r | bool | resolve names |
| -ff | bool | parse and show free floating strings |
| -prof |string| start profiler: [cpu, mem, trace] |
| -php5 | bool | parse as PHP5 |
Dump AST to stdout.
Example
Usage example
-------
```Golang
@ -91,6 +60,42 @@ func main() {
}
```
Who Uses
--------
[VKCOM/noverify](https://github.com/VKCOM/noverify) - NoVerify is a pretty fast linter for PHP
Roadmap
-------
- Control Flow Graph (CFG)
- PhpDocComment parser
- Stabilize api
Install
-------
```
go get github.com/z7zmey/php-parser
```
CLI
---
```
php-parser [flags] <path> ...
```
| flag | type | description |
|-------|------|----------------------------------------------|
| -d |string| dump format: [custom, go, json, pretty-json] |
| -r | bool | resolve names |
| -ff | bool | parse and show free floating strings |
| -prof |string| start profiler: [cpu, mem, trace] |
| -php5 | bool | parse as PHP5 |
Dump AST to stdout.
Namespace resolver
------------------