1
0
mirror of https://github.com/deuill/go-php.git synced 2024-09-21 08:50:45 +00:00
go-php/php.go

19 lines
606 B
Go
Raw Normal View History

// 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 (
"github.com/deuill/go-php/engine"
2015-10-01 23:48:33 +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()
}