Convert PHP source code to Go by AST walking
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
mappu f8ae3aac8d doc/README: fix markdown syntax for publication 10 months ago
fixtures node: support php predefined constants 10 months ago
parseutil move miniwalker to parseutil package 1 year ago
vendor vendor: commit github.com/z7zmey/php-parser v0.7.0 (MIT license) 1 year ago
.gitignore fixtures: exclude *.parse.json from git 1 year ago
README.md doc/README: fix markdown syntax for publication 10 months ago
fixtures_test.go test: ensure fixtures are processed in order 1 year ago
go.mod initial commit 1 year ago
go.sum initial commit 1 year ago
gotype.go gotype: support function types 1 year ago
hoistpass.go hoist: new hoisting context inside closures and loops; don't hoist loop vars 1 year ago
literal.go initial commit 1 year ago
main.go node: support php predefined constants 10 months ago
node.go node: support php predefined constants 10 months ago
normalisealts.go cleanup dead imports 1 year ago
quote.go node: better handling for unquoting heredoc fragments 1 year ago
scope.go gotype: support function types 1 year ago

README.md

php2go

Convert PHP source code to Go by AST walking.

The goal is to produce idiomatic, maintainable Go code as part of a one-off conversion. This is not generally possible for highly dynamic PHP code, that may require manual fixups.

Progress

Phase 1

  • [-] Namespaces

Productionize

Moonshots

Reference