PHPackages                             zyzo/meteor-ddp-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. zyzo/meteor-ddp-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

zyzo/meteor-ddp-php
===================

DDP client for PHP

1.2.0(9y ago)477488[1 issues](https://github.com/zyzo/meteor-ddp-php/issues)MIT LicencePHP

Since Mar 28Pushed 9y ago5 watchersCompare

[ Source](https://github.com/zyzo/meteor-ddp-php)[ Packagist](https://packagist.org/packages/zyzo/meteor-ddp-php)[ Docs](https://github.com/zyzo/meteor-ddp-php)[ RSS](/packages/zyzo-meteor-ddp-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

meteor-ddp-php
==============

[](#meteor-ddp-php)

A [minimalist](http://www.becomingminimalist.com/) PHP library that implements DDP client, the realtime protocol for [Meteor](https://www.meteor.com/ddp) framework.

[![Join the chat at https://gitter.im/zyzo/meteor-ddp-php](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/zyzo/meteor-ddp-php?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### How to use

[](#how-to-use)

Suppose you have declared a remote function `foo` in your meteor server code :

```
Meteor.methods({
  foo : function (arg) {
    check(arg, Number);
    if (arg == 1) { return 42; }
    return "You suck";
  }
});
```

Then in your php client's code, you could just invoke `foo` by executing :

```
use zyzo\MeteorDDP\DDPClient;

$client = new DDPClient('localhost', 3000);

$client->connect();

$client->call("foo", array(1));
while(($a = $client->getResult("foo")) === null) {};

echo 'Result = ' . $a . PHP_EOL;

$client->stop();
```

===&gt;

```
Result = 42

```

More use cases can be found in the [examples](https://github.com/zyzo/meteor-ddp-php/tree/devel/examples) folder.

### How to install

[](#how-to-install)

This library is available via [composer](https://packagist.org/packages/zyzo/meteor-ddp-php), the dependency manager for PHP. Please add this in your composer.json :

```
"require" : {
    "zyzo/meteor-ddp-php": "1.2.0"
}
```

and update composer to automatically retrieve the package :

```
php composer.phar update
```

### Run tests

[](#run-tests)

```
cd tests
// install composer.phar in this folder
php composer.phar update
php [filename].php
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

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 ~177 days

Total

4

Last Release

3538d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12fa3ec49e017427110bb1e20095e47e38022d99d7cdf501ecfe9daebe4bf8ac?d=identicon)[zyzo](/maintainers/zyzo)

---

Top Contributors

[![zyzo](https://avatars.githubusercontent.com/u/6483446?v=4)](https://github.com/zyzo "zyzo (14 commits)")[![Enelar](https://avatars.githubusercontent.com/u/750396?v=4)](https://github.com/Enelar "Enelar (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

ddp-clientmeteormeteor-ddp-phpphpphpDDPddpclientmeteor

### Embed Badge

![Health badge](/badges/zyzo-meteor-ddp-php/health.svg)

```
[![Health](https://phpackages.com/badges/zyzo-meteor-ddp-php/health.svg)](https://phpackages.com/packages/zyzo-meteor-ddp-php)
```

###  Alternatives

[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)

PHPackages © 2026

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