skey / goemphp

This package is built for Embedding PHP into Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoEmPHP

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.

INSTALL

$ go get github.com/mikespook/goemphp/php

Contacts

About

This package is built for Embedding PHP into Golang.

License:MIT License