php-sdk
Runtime module for the PHP SDK
Installation
dagger install github.com/dagger/dagger/sdk/php@v0.19.3Entrypoint
Return Type
PhpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| sdkSourceDir | Directory | - | Directory with the PHP SDK source code. |
Example
dagger -m github.com/dagger/dagger/sdk/php@e6df42bb0f962c4051afb7cfd3ae99af5f65649e call \
func (m *MyModule) Example() *dagger.PhpSdk {
return dag.
PhpSdk()
}@function
def example() -> dagger.PhpSdk:
return (
dag.php_sdk()
)@func()
example(): PhpSdk {
return dag
.phpSdk()
}Types
PhpSdk 🔗
sourceDir() 🔗
Return Type
Directory ! Example
dagger -m github.com/dagger/dagger/sdk/php@e6df42bb0f962c4051afb7cfd3ae99af5f65649e call \
source-dirfunc (m *MyModule) Example() *dagger.Directory {
return dag.
PhpSdk().
SourceDir()
}@function
def example() -> dagger.Directory:
return (
dag.php_sdk()
.source_dir()
)@func()
example(): Directory {
return dag
.phpSdk()
.sourceDir()
}codegen() 🔗
Return Type
GeneratedCode !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.GeneratedCode {
return dag.
PhpSdk().
Codegen(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
return (
dag.php_sdk()
.codegen(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.phpSdk()
.codegen(modSource, introspectionJson)
}codegenBase() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container {
return dag.
PhpSdk().
CodegenBase(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.php_sdk()
.codegen_base(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.phpSdk()
.codegenBase(modSource, introspectionJson)
}moduleRuntime() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container {
return dag.
PhpSdk().
ModuleRuntime(modSource, introspectionJson)
}@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.php_sdk()
.module_runtime(mod_source, introspection_json)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.phpSdk()
.moduleRuntime(modSource, introspectionJson)
}