php-sdk
Runtime module for the PHP SDK
Installation
dagger install github.com/charjr/dagger/sdk/php@fd0d85e2b63698e2c5912a589468dcb9b88e6e5fEntrypoint
Return Type
PhpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| sdkSourceDir | Directory | - | Directory with the PHP SDK source code. |
Example
dagger -m github.com/charjr/dagger/sdk/php@fd0d85e2b63698e2c5912a589468dcb9b88e6e5f 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/charjr/dagger/sdk/php@fd0d85e2b63698e2c5912a589468dcb9b88e6e5f call \
source-dirfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Phpsdk().
Sourcedir()
}@function
def example() -> dagger.Directory:
return (
dag.php_sdk()
.sourcedir()
)@func()
example(): Directory {
return dag
.phpSdk()
.sourceDir()
}requiredPaths() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/charjr/dagger/sdk/php@fd0d85e2b63698e2c5912a589468dcb9b88e6e5f call \
required-pathsfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Phpsdk().
Requiredpaths(ctx)
}@function
async def example() -> List[str]:
return await (
dag.php_sdk()
.requiredpaths()
)@func()
async example(): Promise<string[]> {
return dag
.phpSdk()
.requiredPaths()
}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(modsource: dagger.ModuleSource, introspectionjson: dagger.File) -> dagger.GeneratedCode:
return (
dag.php_sdk()
.codegen(modsource, introspectionjson)
)@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(modsource: dagger.ModuleSource, introspectionjson: dagger.File) -> dagger.Container:
return (
dag.php_sdk()
.codegenbase(modsource, introspectionjson)
)@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(modsource: dagger.ModuleSource, introspectionjson: dagger.File) -> dagger.Container:
return (
dag.php_sdk()
.moduleruntime(modsource, introspectionjson)
)@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
return dag
.phpSdk()
.moduleRuntime(modSource, introspectionJson)
}