PHPackages                             causal/doodle\_client - 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. [API Development](/categories/api)
4. /
5. causal/doodle\_client

ActiveLibrary[API Development](/categories/api)

causal/doodle\_client
=====================

A small, lightweight library to interact with Doodle (http://doodle.com)

0.5.0(8y ago)151646[7 issues](https://github.com/xperseguers/doodle_client/issues)GPL-3.0+PHPPHP ^7.0CI failing

Since Sep 28Pushed 6y ago6 watchersCompare

[ Source](https://github.com/xperseguers/doodle_client)[ Packagist](https://packagist.org/packages/causal/doodle_client)[ Docs](https://github.com/xperseguers/doodle_client)[ RSS](/packages/causal-doodle-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (9)Used By (0)

Doodle Client
=============

[](#doodle-client)

This library provides a missing feature of Doodle (): an API to programmatically access and create polls on the Doodle platform.

I was surprised to find only a basic API to *initiate* polls (not actually creating them, just pre-filling the form) but not anything else to fetch the list of polls or related participant answers so I contacted them and got this answer on September 25th, 2015:

> Unfortunately, Doodle won't be offering an API any longer.
>
> \-- Katharina

As such I wrote this PHP client.

Basic Usage
-----------

[](#basic-usage)

```
$doodleUsername = 'me@example.com';
$doodlePassword = 'my-very-secret-password';

$client = new \Causal\DoodleClient\Client($doodleUsername, $doodlePassword);
$client->connect();

$myPolls = $client->getPersonalPolls();

echo 'My polls';
echo '';
foreach ($myPolls as $poll) {
    echo '';
    echo '' . htmlspecialchars($poll->getTitle()) . '';
    echo '' . nl2br($poll->getDescription()) . '';
    echo 'Export answers as: ' .
        'Excel | ' .
        'PDF';
    echo '';
}
echo '';

// Optional, if you want to prevent actually authenticating over and over again
// with future requests (thus reusing the local authentication cookies)
$client->disconnect();

```

Create a Poll (Text Options)
----------------------------

[](#create-a-poll-text-options)

```
$newPoll = $client->createPoll([
    'type' => 'text',
    'title' => 'Dinner',
    'location' => 'Restaurant Xtra',
    'description' => 'I suggest we meet and have a nice time together',
    'name' => 'John Doo',
    'email' => 'john.doo@example.com',
    'options' => [
        'Lasagna',
        'Pizza',
        'Meat',
    ],
]);
echo 'link to new poll: ' . $newPoll->getPublicUrl();

```

Create a Poll (Dates)
---------------------

[](#create-a-poll-dates)

```
$newPoll = $client->createPoll([
    'type' => 'date',
    'title' => 'Dinner',
    'location' => 'Restaurant Xtra',
    'description' => 'I suggest we meet and have a nice time together',
    'name' => 'John Doo',
    'email' => 'john.doo@example.com',
    'dates' => [
        '20150929' => ['1930', '2000'],
        '20150930' => ['2000'],
        '20151030' => ['1945', '2000'],
    ],
]);
echo 'link to new poll: ' . $newPoll->getPublicUrl();

```

Invite participants
-------------------

[](#invite-participants)

```
// Selection of a given poll could be based on any "$poll" from the
// foreach loop in "Basic Usage" example or of course "$newPoll".
$emailAdresses = [
    'someone@example.tld',
    'someone-else@gmail.com',
];
$message = 'Hey there! Please check this doodle!';
$client->inviteParticipants($poll, $emailAddresses, $message);

```

Delete a Poll
-------------

[](#delete-a-poll)

```
// Selection of a given poll could be based on any "$poll" from the
// foreach loop in "Basic Usage" example.

$client->deletePoll($poll);

```

Table of Answers
----------------

[](#table-of-answers)

Another example of use, would be to fetch answers for a given poll.

```
// Selection of a given poll could be based on any "$poll" from the
// foreach loop in "Basic Usage" example.

echo '';

echo '';
echo '';
echo '';
$options = $poll->getOptions();
foreach ($options as $option) {
    echo '' . htmlspecialchars($option) . '';
}
echo '';
echo '';

echo '';
$participants = $poll->getParticipants();
foreach ($participants as $participant) {
    echo '';
    echo '' . htmlspecialchars($participant->getName()) . '';
    foreach ($participant->getPreferences() as $preference) {
        switch ($preference) {
            case '0':
                $value = 'NO';
                $color = '#ffccca';
                break;
            case '1':
                $value = 'YES';
                $color = '#d1f3d1';
                break;
            case '2':
                $value = 'If needed';
                $color = '#ffeda1';
                break;
            default:
                $value = '?';
                $color = '#eaeaea';
                break;
        }
        echo '' . htmlspecialchars($value) . '';
    }
    echo '';
}
echo '';

echo '';

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.7% 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 ~113 days

Recently: every ~197 days

Total

8

Last Release

3137d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3,&lt;8.0-DEV

0.5.0PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/646805?v=4)[Xavier Perseguers](/maintainers/xperseguers)[@xperseguers](https://github.com/xperseguers)

---

Top Contributors

[![xperseguers](https://avatars.githubusercontent.com/u/646805?v=4)](https://github.com/xperseguers "xperseguers (39 commits)")[![michabbb](https://avatars.githubusercontent.com/u/3524595?v=4)](https://github.com/michabbb "michabbb (3 commits)")[![neffmartin](https://avatars.githubusercontent.com/u/30538824?v=4)](https://github.com/neffmartin "neffmartin (1 commits)")

---

Tags

doodle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/causal-doodle-client/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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