Dagger
Search

php-sdk-dev

No long description provided.

Installation

dagger install github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78

Entrypoint

Return Type
PhpSdkDev !
Arguments
NameTypeDefault ValueDescription
containerContainer nullNo description provided
Example
dagger -m github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78 call \
func (m *myModule) example() *PhpSdkDev  {
	return dag.
			PhpSdkDev()
}
@function
def example() -> dag.PhpSdkDev:
	return (
		dag.php_sdk_dev()
	)
@func()
example(): PhpSdkDev {
	return dag
		.phpSdkDev()
}

Types

PhpSdkDev 🔗

The PHP SDK's development module.

test() 🔗

Run tests from source directory

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-Run tests from the given source directory
groupString nullOnly run tests in the given group
Example
dagger -m github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78 call \
 test --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			PhpSdkDev().
			Test(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.php_sdk_dev()
		.test(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.phpSdkDev()
		.test(source)
}

lint() 🔗

Run linter in source directory

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78 call \
 lint --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			PhpSdkDev().
			Lint(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.php_sdk_dev()
		.lint(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.phpSdkDev()
		.lint(source)
}

format() 🔗

Return diff from formatting source directory

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78 call \
 format --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory  {
	return dag.
			PhpSdkDev().
			Format(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
	return (
		dag.php_sdk_dev()
		.format(source)
	)
@func()
example(source: Directory): Directory {
	return dag
		.phpSdkDev()
		.format(source)
}

formatStdout() 🔗

Return stdout from formatting source directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/helderco/dagger/sdk/php/dev@8dac6d5f8db71c650e8bcb1b4e9199a0a3acfd78 call \
 format-stdout --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			PhpSdkDev().
			FormatStdout(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.php_sdk_dev()
		.format_stdout(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.phpSdkDev()
		.formatStdout(source)
}