2015-10-04 18:28:44 +00:00
|
|
|
// Copyright 2015 Alexander Palaistras. All rights reserved.
|
|
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
|
|
// the LICENSE file.
|
|
|
|
|
|
|
|
// Package php implements bindings from Go to PHP, and allows for executing
|
|
|
|
// scripts, binding variables and defining functions and classes which can then
|
|
|
|
// be called from within PHP scripts.
|
2015-10-01 23:48:33 +00:00
|
|
|
package php
|
|
|
|
|
|
|
|
import (
|
2015-10-04 18:28:44 +00:00
|
|
|
"github.com/deuill/go-php/engine"
|
2015-10-01 23:48:33 +00:00
|
|
|
)
|
|
|
|
|
2015-10-04 18:28:44 +00:00
|
|
|
// New initializes a PHP engine instance on which contexts can be executed. It
|
|
|
|
// corresponds to PHP's MINIT (module init) phase.
|
2015-10-01 23:48:33 +00:00
|
|
|
func New() (*engine.Engine, error) {
|
|
|
|
return engine.New()
|
|
|
|
}
|