dagger / dagger
Dagger PHP SDK
v0.11.2
2024-04-26 12:03 UTC
Requires
- php: >=8.2
- gmostafa/php-graphql-client: ^1.13
- psr/log: ^3.0
- symfony/process: ^6.3
Requires (Dev)
- nette/php-generator: ^4.1
- phpunit/phpunit: ^10.4
- symfony/console: ^6.3
- webonyx/graphql-php: ^15.8
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->pipeline('test') ->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