Dagger
Search

php

No long description provided.

Installation

dagger install github.com/jasonmccallister/dagger-php@59cf8b25990c686fa9da2ea586caeec899e4581e

Entrypoint

Return Type
Php !
Arguments
NameTypeDefault ValueDescription
versionString "8.4"The version of PHP to install
extensions[String ! ] -Additional PHP extensions to install
enableXdebugBoolean falseEnable Xdebug for the PHP container
ubuntuVersionString "24.04"The version of Ubuntu to use
sourceDirectory -The directory that contains your PHP project.
Example
dagger -m github.com/jasonmccallister/dagger-php@59cf8b25990c686fa9da2ea586caeec899e4581e 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 🔗

setup() 🔗

Create a container with PHP and the specified extensions installed

Return Type
Container !
Example
dagger -m github.com/jasonmccallister/dagger-php@59cf8b25990c686fa9da2ea586caeec899e4581e 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()
}