Dagger
Search

php-sdk

when done add php to core/schema/sdk.go:L93

Installation

dagger install github.com/carnage/dagger/sdk/php/runtime@ca989dd4872834612d011795fa19cb1abc0f9b29

Entrypoint

Return Type
PhpSdk !
Arguments
NameTypeDescription
sdkSourceDirDirectory Directory with the PHP SDK source code.
Example
func (m *myModule) example() *PhpSdk  {
	return dag.
			PhpSdk()
}
@function
def example() -> dag.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@ca989dd4872834612d011795fa19cb1abc0f9b29 call \
 source-dir
func (m *myModule) example() *Directory  {
	return dag.
			PhpSdk().
			SourceDir()
}
@function
def example() -> dagger.Directory:
	return (
		dag.php_sdk()
		.source_dir()
	)
@func()
example(): Directory {
	return dag
		.phpSdk()
		.sourceDir()
}

requiredPaths() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/carnage/dagger/sdk/php/runtime@ca989dd4872834612d011795fa19cb1abc0f9b29 call \
 required-paths
func (m *myModule) example(ctx context.Context) []string  {
	return dag.
			PhpSdk().
			RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.php_sdk()
		.required_paths()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.phpSdk()
		.requiredPaths()
}

container() 🔗

Return Type
Container !
Example
dagger -m github.com/carnage/dagger/sdk/php/runtime@ca989dd4872834612d011795fa19cb1abc0f9b29 call \
 container
func (m *myModule) example() *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
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonString !-No description provided
Example
Function PhpSdk.codegen is not accessible from the php-sdk module
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *GeneratedCode  {
	return dag.
			PhpSdk().
			Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dag.GeneratedCode:
	return (
		dag.php_sdk()
		.codegen(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: string): GeneratedCode {
	return dag
		.phpSdk()
		.codegen(modSource, introspectionJson)
}

codegenBase() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonString !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container  {
	return dag.
			PhpSdk().
			CodegenBase(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
	return (
		dag.php_sdk()
		.codegen_base(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
	return dag
		.phpSdk()
		.codegenBase(modSource, introspectionJson)
}

moduleRuntime() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonString !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container  {
	return dag.
			PhpSdk().
			ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: str) -> dagger.Container:
	return (
		dag.php_sdk()
		.module_runtime(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: string): Container {
	return dag
		.phpSdk()
		.moduleRuntime(modSource, introspectionJson)
}