dagger / dagger
Dagger PHP SDK
v0.18.12
2025-06-27 17:22 UTC
Requires
- php: >=8.2
- carnage/php-graphql-client: ^1.14.1
- jms/serializer: ^3.30
- psr/log: ^3.0
- roave/better-reflection: ^6.25
- symfony/console: ^6.3|^7.0
- symfony/process: ^6.3|^7.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- nette/php-generator: ^4.1
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.10.2
- webonyx/graphql-php: ^15.8
- dev-main
- v0.18.12
- v0.18.11
- v0.18.10
- v0.18.9
- v0.18.8
- v0.18.7
- v0.18.6
- v0.18.5
- v0.18.4
- v0.18.3
- v0.18.2
- v0.18.1
- v0.18.0
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.3
- v0.16.2
- v0.16.1
- v0.16.0
- v0.15.4
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.7
- v0.13.6
- v0.13.5
- v0.13.4
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.7
- v0.12.6
- v0.12.5
- v0.12.4
- v0.12.3
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.9
- v0.11.8
- v0.11.7
- v0.11.6
- v0.11.5
- v0.11.4
- v0.11.3
- v0.11.2
- v0.11.1
- v0.11.0
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.11
- v0.9.10
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.5
This package is auto-updated.
Last update: 2025-06-27 18:57:43 UTC
README
Warning This SDK is experimental. Please do not use it for anything mission-critical. Possible issues include:
- Missing features
- Stability issues
- Performance issues
- Lack of polish
- Upcoming breaking changes
- Incomplete or out-of-date documentation
Warning The Dagger PHP SDK requires Dagger v0.9.3 or later
Dagger PHP SDK
An experimental Dagger.io SDK for PHP.
Usage
$client = Dagger::connect(); $output = $client ->container() ->from('alpine') ->withExec(['apk', 'add', 'curl']) ->withExec(['curl', 'https://dagger.io']) ->stdout(); echo substr($output, 0, 300);
Development environment
You can launch a basic development environment by using the provided docker-compose file.
- Launch the cli :
docker compose up -d cli
- Spawn a shell inside :
docker compose exec cli bash
- Install dependencies :
composer install
- Run the tests :
phpunit
You can regenerate the files by using the ./codegen
command
Developing with the PHP SDK runtime
From a parent directory of the PHP SDK, run dagger init --sdk=<path to dagger repo>/sdk/php
.
This will use the PHP SDK runtime with local source code which will make the feedback loop much faster than pulling changes from the remote repository.