This package is built for Embedding PHP into Golang.
It is easy to use:
script = php.New()
script.Startup()
defer script.Close()
if err := script.Eval("phpinfo();"); err != nil {
log.Fatal(err)
}
if err := script.Exec("foobar.php"); err != nil {
log.Fatal(err)
}
For more examples, please read the souce code: php\_test.php
.
$ go get github.com/mikespook/goemphp/php
-
Xing Xing mikespook@gmail.com