php-sdk
when done add php to core/schema/sdk.go:L93Installation
dagger install github.com/carnage/dagger/sdk/php/runtime@ebbef0c3335ee936505f904ff027f4949847db2cEntrypoint
Return Type
PhpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| sdkSourceDir | Directory | - | Directory with the PHP SDK source code. |
Example
dagger -m github.com/carnage/dagger/sdk/php/runtime@ebbef0c3335ee936505f904ff027f4949847db2c 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/carnage/dagger/sdk/php/runtime@ebbef0c3335ee936505f904ff027f4949847db2c 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/carnage/dagger/sdk/php/runtime@ebbef0c3335ee936505f904ff027f4949847db2c 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()
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/carnage/dagger/sdk/php/runtime@ebbef0c3335ee936505f904ff027f4949847db2c call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Phpsdk().
Container()
}@function
def example() -> dagger.Container:
return (
dag.php_sdk()
.container()
)@func()
example(): Container {
return dag
.phpSdk()
.container()
}codegen() 🔗
Return Type
GeneratedCode !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson string) *dagger.GeneratedCode {
return dag.
Phpsdk().
Codegen(modSource, introspectionJson)
}@function
def example(modsource: dagger.ModuleSource, introspectionjson: str) -> dagger.GeneratedCode:
return (
dag.php_sdk()
.codegen(modsource, introspectionjson)
)@func()
example(modSource: ModuleSource, introspectionJson: string): GeneratedCode {
return dag
.phpSdk()
.codegen(modSource, introspectionJson)
}codegenBase() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson string) *dagger.Container {
return dag.
Phpsdk().
Codegenbase(modSource, introspectionJson)
}@function
def example(modsource: dagger.ModuleSource, introspectionjson: str) -> dagger.Container:
return (
dag.php_sdk()
.codegenbase(modsource, introspectionjson)
)@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
return dag
.phpSdk()
.codegenBase(modSource, introspectionJson)
}moduleRuntime() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson string) *dagger.Container {
return dag.
Phpsdk().
Moduleruntime(modSource, introspectionJson)
}@function
def example(modsource: dagger.ModuleSource, introspectionjson: str) -> dagger.Container:
return (
dag.php_sdk()
.moduleruntime(modsource, introspectionjson)
)@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
return dag
.phpSdk()
.moduleRuntime(modSource, introspectionJson)
}