PHPackages                             dagger/dagger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dagger/dagger

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dagger/dagger
=============

Dagger PHP SDK

v0.20.3(1mo ago)268252Apache-2.0PHPPHP &gt;=8.2CI passing

Since Dec 21Pushed 1mo ago7 watchersCompare

[ Source](https://github.com/dagger/dagger-php-sdk)[ Packagist](https://packagist.org/packages/dagger/dagger)[ Docs](https://dagger.io)[ RSS](/packages/dagger-dagger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (24)Versions (86)Used By (0)

> **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
==============

[](#dagger-php-sdk)

An experimental [Dagger.io](https://dagger.io) SDK for PHP.

Usage
-----

[](#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
-----------------------

[](#development-environment)

You can launch a basic development environment by using the provided docker-compose file.

1. Launch the cli : `docker compose up -d cli`
2. Spawn a shell inside : `docker compose exec cli bash`
3. Install dependencies : `composer install`
4. Run the tests : `phpunit`

You can regenerate the files by using the `./codegen` command

Developing with the PHP SDK runtime
-----------------------------------

[](#developing-with-the-php-sdk-runtime)

From a parent directory of the PHP SDK, run `dagger init --sdk=/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.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

85

Last Release

58d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94f16c5b5de37413a4e90d4d1a1b9d6faa4ca1e4aa69bce20866e68da9f014a1?d=identicon)[dagger](/maintainers/dagger)

---

Top Contributors

[![jedevc](https://avatars.githubusercontent.com/u/7352848?v=4)](https://github.com/jedevc "jedevc (115 commits)")[![sipsma](https://avatars.githubusercontent.com/u/30126853?v=4)](https://github.com/sipsma "sipsma (58 commits)")[![vito](https://avatars.githubusercontent.com/u/1880?v=4)](https://github.com/vito "vito (26 commits)")[![charjr](https://avatars.githubusercontent.com/u/102669158?v=4)](https://github.com/charjr "charjr (23 commits)")[![TomChv](https://avatars.githubusercontent.com/u/61683879?v=4)](https://github.com/TomChv "TomChv (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (18 commits)")[![shykes](https://avatars.githubusercontent.com/u/29565?v=4)](https://github.com/shykes "shykes (17 commits)")[![helderco](https://avatars.githubusercontent.com/u/174525?v=4)](https://github.com/helderco "helderco (14 commits)")[![eunomie](https://avatars.githubusercontent.com/u/1542321?v=4)](https://github.com/eunomie "eunomie (11 commits)")[![marcosnils](https://avatars.githubusercontent.com/u/1578458?v=4)](https://github.com/marcosnils "marcosnils (11 commits)")[![grouville](https://avatars.githubusercontent.com/u/31691250?v=4)](https://github.com/grouville "grouville (10 commits)")[![rajatjindal](https://avatars.githubusercontent.com/u/612092?v=4)](https://github.com/rajatjindal "rajatjindal (8 commits)")[![cwlbraa](https://avatars.githubusercontent.com/u/3478454?v=4)](https://github.com/cwlbraa "cwlbraa (7 commits)")[![alexcb](https://avatars.githubusercontent.com/u/1806823?v=4)](https://github.com/alexcb "alexcb (5 commits)")[![wingyplus](https://avatars.githubusercontent.com/u/484530?v=4)](https://github.com/wingyplus "wingyplus (4 commits)")[![zeroware](https://avatars.githubusercontent.com/u/8173025?v=4)](https://github.com/zeroware "zeroware (3 commits)")[![tiborvass](https://avatars.githubusercontent.com/u/827131?v=4)](https://github.com/tiborvass "tiborvass (3 commits)")[![dagger-ci](https://avatars.githubusercontent.com/u/83475260?v=4)](https://github.com/dagger-ci "dagger-ci (3 commits)")[![matipan](https://avatars.githubusercontent.com/u/8126891?v=4)](https://github.com/matipan "matipan (3 commits)")[![suprjinx](https://avatars.githubusercontent.com/u/1463452?v=4)](https://github.com/suprjinx "suprjinx (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dagger-dagger/health.svg)

```
[![Health](https://phpackages.com/badges/dagger-dagger/health.svg)](https://phpackages.com/packages/dagger-dagger)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
