mirror of
https://github.com/deuill/go-php.git
synced 2024-09-21 08:50:45 +00:00
Alex Palaistras
7ed2c81ec6
Call order is now enforced when using the root `php` package by moving the `NewContext` function in the `engine` package, as a method of the `Engine` method receiver. Further clean-ups have been made to the code as a result of this change.
19 lines
606 B
Go
19 lines
606 B
Go
// 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.
|
|
package php
|
|
|
|
import (
|
|
"github.com/deuill/go-php/engine"
|
|
)
|
|
|
|
// New initializes a PHP engine instance on which contexts can be executed. It
|
|
// corresponds to PHP's MINIT (module init) phase.
|
|
func New() (*engine.Engine, error) {
|
|
return engine.New()
|
|
}
|