{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/vkcom/php-parser","name":"github.com/vkcom/php-parser","description":"A Parser for PHP written in Go Features: * Fully support PHP5 and PHP7 syntax * Abstract syntax tree representation * Traversing AST * Namespace resolver Install: go get github.com/z7zmey/php-parser CLI dumper: $GOPATH/bin/php-parser -php5 /path/to/file/or/dir Package usage example: package main import ( \"fmt\" \"bytes\" \"os\" \"github.com/z7zmey/php-parser/php7\" \"github.com/z7zmey/php-parser/visitor\" ) func main() { src := bytes.NewBufferString(`\u003c? echo \"Hello world\";`) parser := php7.NewParser(src, \"example.php\") parser.Parse() for _, e := range parser.GetErrors() { fmt.Println(e) } visitor := visitor.Dumper{ Writer: os.Stdout, Indent: \"\", Comments: parser.GetComments(), Positions: parser.GetPositions(), } rootNode := parser.GetRootNode() rootNode.Walk(visitor) }","version":"v0.8.2","softwareVersion":"v0.8.2","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/vkcom/php-parser","issueTracker":"https://github.com/VKCOM/php-parser/issues","url":"https://github.com/vkcom/php-parser","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2018-02-06","dateModified":"2022-06-26","datePublished":"2022-06-26","copyrightYear":2018,"downloadUrl":"https://proxy.golang.org/cached-only/github.com/vkcom/php-parser/@v/v0.8.2.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/vkcom/php-parser#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/vkcom/php-parser"],"https://www.w3.org/ns/activitystreams#likes":83,"https://forgefed.org/ns#forks":22}