Versions in this module Expand all Collapse all v0 v0.1.1 Oct 10, 2026 v0.1.0 Oct 10, 2026 Changes in this version + var ErrEngineClosed = errors.New("gophper: the engine is closed") + var License string + func HostFS() wazero.FSConfig + func HostPaths(path string) (host string, writable, ok bool) + func HostToGuest(path string) string + type Engine struct + func NewEngine(ctx context.Context, cfg EngineConfig) (*Engine, error) + func (e *Engine) BuildID() string + func (e *Engine) Close(ctx context.Context) error + func (e *Engine) Compile(ctx context.Context) error + func (e *Engine) RunCGI(ctx context.Context, opts Options) (int, error) + func (e *Engine) RunCLI(ctx context.Context, opts Options) (int, error) + type EngineConfig struct + CacheDir string + ExtensionDir string + PHPBinary string + func DefaultEngineConfig() EngineConfig + type Function func(ctx context.Context, args []any) (any, error) + type Options struct + Args []string + Dir string + Env []string + FS wazero.FSConfig + Functions map[string]Function + HostPath func(path string) (host string, writable, ok bool) + MemoryLimit int64 + Network bool + Processes bool + Signals <-chan os.Signal + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer