php
No long description provided.
Installation
dagger install github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33
Entrypoint
Return Type
Php
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
func (m *myModule) example() *Php {
return dag.
Php()
}
@function
def example() -> dag.Php:
return (
dag.php()
)
@func()
example(): Php {
return dag
.php()
}
Types
Php 🔗
apache() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | "8.3" | PHP Version to use |
os | String ! | "alpine" | OS Version to use, valid options: alpine, debian |
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
apache --version string --os string
func (m *myModule) example(version string, os string) *Container {
return dag.
Php().
Apache(version, os)
}
@function
def example(version: str, os: str) -> dagger.Container:
return (
dag.php()
.apache(version, os)
)
@func()
example(version: string, os: string): Container {
return dag
.php()
.apache(version, os)
}
cli() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | "8.3" | PHP Version to use |
os | String ! | "alpine" | OS Version to use, valid options: alpine, debian |
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
cli --version string --os string
func (m *myModule) example(version string, os string) *Container {
return dag.
Php().
Cli(version, os)
}
@function
def example(version: str, os: str) -> dagger.Container:
return (
dag.php()
.cli(version, os)
)
@func()
example(version: string, os: string): Container {
return dag
.php()
.cli(version, os)
}
fpm() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | "8.3" | PHP Version to use |
os | String ! | "alpine" | OS Version to use, valid options: alpine, debian |
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
fpm --version string --os string
func (m *myModule) example(version string, os string) *Container {
return dag.
Php().
Fpm(version, os)
}
@function
def example(version: str, os: str) -> dagger.Container:
return (
dag.php()
.fpm(version, os)
)
@func()
example(version: string, os: string): Container {
return dag
.php()
.fpm(version, os)
}
zts() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | "8.3" | PHP Version to use |
os | String ! | "alpine" | OS Version to use, valid options: alpine, debian |
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
zts --version string --os string
func (m *myModule) example(version string, os string) *Container {
return dag.
Php().
Zts(version, os)
}
@function
def example(version: str, os: str) -> dagger.Container:
return (
dag.php()
.zts(version, os)
)
@func()
example(version: string, os: string): Container {
return dag
.php()
.zts(version, os)
}
withExtension() 🔗
Install a PHP extension into a container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | The container to install the extension into, |
extension | String ! | - | No description provided |
Example
dagger -m github.com/carnage/dagger-php-module@22aa90a967f4eef40bba1ddce096ad04e8888b33 call \
with-extension --container IMAGE:TAG --extension string
func (m *myModule) example(container *Container, extension string) *Container {
return dag.
Php().
WithExtension(container, extension)
}
@function
def example(container: dagger.Container, extension: str) -> dagger.Container:
return (
dag.php()
.with_extension(container, extension)
)
@func()
example(container: Container, extension: string): Container {
return dag
.php()
.withExtension(container, extension)
}