Documentation
¶
Overview ¶
Package php is the planner for PHP projects.
Index ¶
- Constants
- func DetermineAptDependencies(source afero.Fs) []string
- func DetermineBuildCommand(config plan.ImmutableProjectConfiguration) string
- func DeterminePHPExtensions(source afero.Fs) (extensions []string)
- func DeterminePHPOptimize(config plan.ImmutableProjectConfiguration) bool
- func DetermineProjectFramework(source afero.Fs) types.PHPFramework
- func DetermineStartCommand(config plan.ImmutableProjectConfiguration) string
- func GenerateDockerfile(meta types.PlanMeta) (string, error)
- func GetPHPVersion(config plan.ImmutableProjectConfiguration, source afero.Fs) string
- func NewIdentifier() plan.Identifier
- func NewPacker() packer.Packer
Constants ¶
const ConfigPHPOptimize = "php.optimize"
ConfigPHPOptimize decides if we should run optimization on build.
const ConfigPHPVersion = "php.version"
ConfigPHPVersion defines the PHP version to use.
const DefaultPHPVersion = "8"
DefaultPHPVersion is the default PHP version.
Variables ¶
This section is empty.
Functions ¶
func DetermineAptDependencies ¶
DetermineAptDependencies determines the required apt dependencies of the project.
func DetermineBuildCommand ¶
func DetermineBuildCommand(config plan.ImmutableProjectConfiguration) string
DetermineBuildCommand determines the build command of the project.
func DeterminePHPExtensions ¶
DeterminePHPExtensions determines the required PHP extensions from composer.json of the project.
func DeterminePHPOptimize ¶
func DeterminePHPOptimize(config plan.ImmutableProjectConfiguration) bool
DeterminePHPOptimize determines if we should run optimization on build.
func DetermineProjectFramework ¶
func DetermineProjectFramework(source afero.Fs) types.PHPFramework
DetermineProjectFramework determines the framework of the project.
func DetermineStartCommand ¶
func DetermineStartCommand(config plan.ImmutableProjectConfiguration) string
DetermineStartCommand determines the start command of the project.
func GenerateDockerfile ¶
GenerateDockerfile generates the Dockerfile for PHP projects.
func GetPHPVersion ¶
func GetPHPVersion(config plan.ImmutableProjectConfiguration, source afero.Fs) string
GetPHPVersion gets the php version of the project.
func NewIdentifier ¶
func NewIdentifier() plan.Identifier
NewIdentifier returns a new PHP identifier.
Types ¶
This section is empty.