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.21.7(2w ago)261.1k4Apache-2.0PHPPHP &gt;=8.2CI passing

Since Dec 21Pushed today7 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 today

READMEChangelogDependencies (72)Versions (98)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 sdk install /sdk/php --name php`, then `dagger module init 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

56

—

FairBetter than 97% of packages

Maintenance99

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor4

4 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

97

Last Release

16d 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 (67 commits)")[![vito](https://avatars.githubusercontent.com/u/1880?v=4)](https://github.com/vito "vito (29 commits)")[![shykes](https://avatars.githubusercontent.com/u/29565?v=4)](https://github.com/shykes "shykes (26 commits)")[![charjr](https://avatars.githubusercontent.com/u/102669158?v=4)](https://github.com/charjr "charjr (24 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)")[![tiborvass](https://avatars.githubusercontent.com/u/827131?v=4)](https://github.com/tiborvass "tiborvass (17 commits)")[![eunomie](https://avatars.githubusercontent.com/u/1542321?v=4)](https://github.com/eunomie "eunomie (17 commits)")[![grouville](https://avatars.githubusercontent.com/u/31691250?v=4)](https://github.com/grouville "grouville (15 commits)")[![helderco](https://avatars.githubusercontent.com/u/174525?v=4)](https://github.com/helderco "helderco (14 commits)")[![marcosnils](https://avatars.githubusercontent.com/u/1578458?v=4)](https://github.com/marcosnils "marcosnils (12 commits)")[![rajatjindal](https://avatars.githubusercontent.com/u/612092?v=4)](https://github.com/rajatjindal "rajatjindal (8 commits)")[![alexcb](https://avatars.githubusercontent.com/u/1806823?v=4)](https://github.com/alexcb "alexcb (7 commits)")[![cwlbraa](https://avatars.githubusercontent.com/u/3478454?v=4)](https://github.com/cwlbraa "cwlbraa (7 commits)")[![matipan](https://avatars.githubusercontent.com/u/8126891?v=4)](https://github.com/matipan "matipan (6 commits)")[![dagger-ci](https://avatars.githubusercontent.com/u/83475260?v=4)](https://github.com/dagger-ci "dagger-ci (6 commits)")[![kpenfound](https://avatars.githubusercontent.com/u/1865460?v=4)](https://github.com/kpenfound "kpenfound (5 commits)")[![wingyplus](https://avatars.githubusercontent.com/u/484530?v=4)](https://github.com/wingyplus "wingyplus (4 commits)")[![dagger-codex[bot]](https://avatars.githubusercontent.com/in/3785937?v=4)](https://github.com/dagger-codex[bot] "dagger-codex[bot] (4 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

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