plan

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExtensions

func ParseExtensions(raw string) []string

func ParsePHPVersionFile

func ParsePHPVersionFile(path string) (string, error)

Types

type CoverageDriver

type CoverageDriver string
const (
	CoverageNone   CoverageDriver = "none"
	CoverageXdebug CoverageDriver = "xdebug"
	CoveragePCOV   CoverageDriver = "pcov"
)

type IniValue

type IniValue struct {
	Key   string
	Value string
}

func ParseIniValues

func ParseIniValues(raw string) ([]IniValue, error)

type Plan

type Plan struct {
	PHPVersion   string
	Extensions   []string
	IniValues    []IniValue
	Coverage     CoverageDriver
	Tools        []string
	ThreadSafety string
	OS           string
	Arch         string
	FailFast     bool
	Debug        bool
	Verbose      bool
}

func FromEnv

func FromEnv() (*Plan, error)

func (*Plan) ApplyCoverage added in v1.1.0

func (p *Plan) ApplyCoverage()

ApplyCoverage adds the requested coverage driver (xdebug or pcov) to the extensions list so it is resolved, fetched, and composed like any other extension. "none" is a no-op.

func (*Plan) Hash

func (p *Plan) Hash() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL