Dagger
Search

php

No long description provided.

Installation

dagger install github.com/jasonmccallister/dagger-php@cb1cdd9b603e434b64f1862d4f1e8797363f6c32

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@cb1cdd9b603e434b64f1862d4f1e8797363f6c32 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@cb1cdd9b603e434b64f1862d4f1e8797363f6c32 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()
}