php

package
v0.0.0-...-6a68052 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package php is the planner for PHP projects.

Index

Constants

View Source
const ConfigPHPOptimize = "php.optimize"

ConfigPHPOptimize decides if we should run optimization on build.

View Source
const ConfigPHPVersion = "php.version"

ConfigPHPVersion defines the PHP version to use.

View Source
const DefaultPHPVersion = "8"

DefaultPHPVersion is the default PHP version.

Variables

This section is empty.

Functions

func DetermineAptDependencies

func DetermineAptDependencies(source afero.Fs) []string

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

func DeterminePHPExtensions(source afero.Fs) (extensions []string)

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

func GenerateDockerfile(meta types.PlanMeta) (string, error)

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.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new PHP packer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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