Documentation
¶
Index ¶
- Constants
- type PHPStore
- type Version
- func (v *Version) ForceFlavor(flavor string)
- func (v *Version) IsCGIServer() bool
- func (v *Version) IsCLIServer() bool
- func (v *Version) IsFPMServer() bool
- func (v *Version) IsFrankenPHPServer() bool
- func (v *Version) ServerPath() string
- func (v *Version) ServerTypeName() string
- func (v *Version) SupportsFlavor(flavor string) bool
Constants ¶
View Source
const ( FlavorCLI string = "cli" FlavorCGI string = "cgi" FlavorFPM string = "fpm" FlavorFrankenPHP string = "frankenphp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PHPStore ¶
type PHPStore struct {
// contains filtered or unexported fields
}
PHPStore stores information about all locally installed PHP versions
func (*PHPStore) BestVersionForDir ¶
BestVersionForDir returns the configured PHP version for the given PHP script
func (*PHPStore) IsVersionAvailable ¶
type Version ¶
type Version struct {
FullVersion *version.Version `json:"-"`
Version string `json:"version"`
Path string `json:"path"`
PHPPath string `json:"php_path"`
FPMPath string `json:"fpm_path"`
CGIPath string `json:"cgi_path"`
PHPConfigPath string `json:"php_config_path"`
PHPizePath string `json:"phpize_path"`
PHPdbgPath string `json:"phpdbg_path"`
IsSystem bool `json:"is_system"`
FrankenPHP bool `json:"frankenphp"`
// contains filtered or unexported fields
}
Version stores information about an installed PHP version
func NewVersion ¶ added in v1.0.14
func (*Version) ForceFlavor ¶ added in v1.0.14
func (*Version) IsCGIServer ¶
func (*Version) IsCLIServer ¶
func (*Version) IsFPMServer ¶
func (*Version) IsFrankenPHPServer ¶ added in v1.0.6
func (*Version) ServerPath ¶
func (*Version) ServerTypeName ¶
func (*Version) SupportsFlavor ¶ added in v1.0.14
Click to show internal directories.
Click to hide internal directories.