dagger / dagger
Dagger PHP SDK
Installs: 775
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 7
Forks: 2
pkg:composer/dagger/dagger
Requires
- php: >=8.2
- carnage/php-graphql-client: ^1.14.1
- jms/serializer: ^3.32.5
- nette/php-generator: ^4.2.0
- psr/log: ^3.0.2
- roave/better-reflection: ^6.65
- symfony/console: ^7.3.4
- symfony/process: ^7.3.4
- webonyx/graphql-php: ^15.24
Requires (Dev)
- mikey179/vfsstream: ^1.6.12
- phpstan/phpstan: ^2.1.31
- phpunit/phpunit: ^12.4
- squizlabs/php_codesniffer: ^4.0
- dev-main
- v0.19.4
- v0.19.3
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.19
- v0.18.18
- v0.18.17
- v0.18.16
- v0.18.15
- v0.18.14
- v0.18.13
- 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-10-30 22:26:56 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.