php
No long description provided.
Installation
dagger install github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58
Entrypoint
Return Type
Php !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "8.4" | The version of PHP to install |
extensions | [String ! ] | ["bcmath","cli","common","curl","intl","mbstring","mysql","opcache","readline","xml","zip"] | The PHP extensions to install |
enableXdebug | Boolean | false | Enable Xdebug for the PHP container |
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 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 🔗
enableXdebug() 🔗
Return Type
Boolean !
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 call \
enable-xdebug
func (m *myModule) example(ctx context.Context) bool {
return dag.
Php().
EnableXdebug(ctx)
}
@function
async def example() -> bool:
return await (
dag.php()
.enable_xdebug()
)
@func()
async example(): Promise<boolean> {
return dag
.php()
.enableXdebug()
}
extensions() 🔗
The PHP extensions to install
Return Type
[String ! ] !
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 call \
extensions
func (m *myModule) example(ctx context.Context) []string {
return dag.
Php().
Extensions(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.php()
.extensions()
)
@func()
async example(): Promise<string[]> {
return dag
.php()
.extensions()
}
version() 🔗
The version of PHP to install
Return Type
String !
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
Php().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.php()
.version()
)
@func()
async example(): Promise<string> {
return dag
.php()
.version()
}
setup() 🔗
Create a container with PHP and the specified extensions installed
Return Type
Container !
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 call \
setup
func (m *myModule) example() *Container {
return dag.
Php().
Setup()
}
@function
def example() -> dagger.Container:
return (
dag.php()
.setup()
)
@func()
example(): Container {
return dag
.php()
.setup()
}
run() 🔗
Run a PHP command with the specified arguments
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
args | [String ! ] ! | - | The arguments to pass to the PHP command |
Example
dagger -m github.com/jasonmccallister/dagger-php@d17379bfb675223884f849d082868455eedbab58 call \
run --args string1 --args string2
func (m *myModule) example(ctx context.Context, args []string) string {
return dag.
Php().
Run(ctx, args)
}
@function
async def example(args: List[str]) -> str:
return await (
dag.php()
.run(args)
)
@func()
async example(args: string[]): Promise<string> {
return dag
.php()
.run(args)
}