Update README.md
This commit is contained in:
parent
d07e234393
commit
e317dd23fb
69
README.md
69
README.md
@ -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
|
||||
------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user