php
No long description provided.
Installation
dagger install github.com/carnage/dagger-php-module@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b
Entrypoint
Return Type
Php
Example
dagger -m github.com/carnage/dagger-php-module@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
func (m *myModule) example() *Php {
return dag.
Php()
}
@function
def example() -> dag.Php:
return (
dag.php()
)
@func()
example(): Php {
return dag
.php()
}
Types
Phpcontainer 🔗
withComposer() 🔗
Install a PHP extension into the container
Return Type
Phpcontainer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
composerVersion | String ! | "2" | No description provided |
Example
dagger -m github.com/carnage/dagger-php-module@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
zts --version string --os string \
with-composer --composer-version string
func (m *myModule) example(version string, os string, composerVersion string) *PhpPhpcontainer {
return dag.
Php().
Zts(version, os).
WithComposer(composerVersion)
}
@function
def example(version: str, os: str, composer_version: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.zts(version, os)
.with_composer(composer_version)
)
@func()
example(version: string, os: string, composerVersion: string): PhpPhpcontainer {
return dag
.php()
.zts(version, os)
.withComposer(composerVersion)
}
withExtension() 🔗
Install a PHP extension into the container
Return Type
Phpcontainer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
extension | String ! | - | No description provided |
Example
dagger -m github.com/carnage/dagger-php-module@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
zts --version string --os string \
with-extension --extension string
func (m *myModule) example(version string, os string, extension string) *PhpPhpcontainer {
return dag.
Php().
Zts(version, os).
WithExtension(extension)
}
@function
def example(version: str, os: str, extension: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.zts(version, os)
.with_extension(extension)
)
@func()
example(version: string, os: string, extension: string): PhpPhpcontainer {
return dag
.php()
.zts(version, os)
.withExtension(extension)
}
container() 🔗
Returns the built PHP container
Return Type
Container !
Example
dagger -m github.com/carnage/dagger-php-module@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
zts --version string --os string \
container
func (m *myModule) example(version string, os string) *Container {
return dag.
Php().
Zts(version, os).
Container()
}
@function
def example(version: str, os: str) -> dagger.Container:
return (
dag.php()
.zts(version, os)
.container()
)
@func()
example(version: string, os: string): Container {
return dag
.php()
.zts(version, os)
.container()
}
Php 🔗
apache() 🔗
Return Type
Phpcontainer !
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@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
apache --version string --os string
func (m *myModule) example(version string, os string) *PhpPhpcontainer {
return dag.
Php().
Apache(version, os)
}
@function
def example(version: str, os: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.apache(version, os)
)
@func()
example(version: string, os: string): PhpPhpcontainer {
return dag
.php()
.apache(version, os)
}
cli() 🔗
Return Type
Phpcontainer !
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@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
cli --version string --os string
func (m *myModule) example(version string, os string) *PhpPhpcontainer {
return dag.
Php().
Cli(version, os)
}
@function
def example(version: str, os: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.cli(version, os)
)
@func()
example(version: string, os: string): PhpPhpcontainer {
return dag
.php()
.cli(version, os)
}
fpm() 🔗
Return Type
Phpcontainer !
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@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
fpm --version string --os string
func (m *myModule) example(version string, os string) *PhpPhpcontainer {
return dag.
Php().
Fpm(version, os)
}
@function
def example(version: str, os: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.fpm(version, os)
)
@func()
example(version: string, os: string): PhpPhpcontainer {
return dag
.php()
.fpm(version, os)
}
zts() 🔗
Return Type
Phpcontainer !
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@7ee8c86807548fbdff96dfdd5cb7f00021d4ed5b call \
zts --version string --os string
func (m *myModule) example(version string, os string) *PhpPhpcontainer {
return dag.
Php().
Zts(version, os)
}
@function
def example(version: str, os: str) -> dag.PhpPhpcontainer:
return (
dag.php()
.zts(version, os)
)
@func()
example(version: string, os: string): PhpPhpcontainer {
return dag
.php()
.zts(version, os)
}