PHPackages                             dadeg/php-crowdflower - 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. dadeg/php-crowdflower

ActiveLibrary[API Development](/categories/api)

dadeg/php-crowdflower
=====================

PHP library for interacting with the Crowdflower API v1

v0.1.1(11y ago)134.0k2PHP

Since Jul 8Pushed 8y ago2 watchersCompare

[ Source](https://github.com/dadeg/php-crowdflower)[ Packagist](https://packagist.org/packages/dadeg/php-crowdflower)[ RSS](/packages/dadeg-php-crowdflower/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (14)Used By (0)

PHP Crowdflower API integration.
================================

[](#php-crowdflower-api-integration)

[![Code Climate](https://camo.githubusercontent.com/dbccdc7041dda01a3daabea85e41b15aaec329bc7f16fc23b96971cf022ad68c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f64616465672f7068702d63726f7764666c6f7765722e706e67)](https://codeclimate.com/github/dadeg/php-crowdflower)[![Build Status](https://camo.githubusercontent.com/7b903ed2df932bab09952abf01083928ce9e43a462168423f37209bbb182752d/68747470733a2f2f7472617669732d63692e6f72672f64616465672f7068702d63726f7764666c6f7765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dadeg/php-crowdflower)

There are examples of every method of interacting with the CrowdFlower API in the examples folder. The tests are almost at full coverage. I use this package daily and it has been reliable. In order to run the tests yourself you will need to replace the API key in tests/fixtures with your own API key.

Installation
------------

[](#installation)

### Add to composer.json

[](#add-to-composerjson)

```
  "dadeg/php-crowdflower": "0.1.*"

```

### Update composer for existing projects

[](#update-composer-for-existing-projects)

```
  composer update dadeg/php-crowdflower
```

### Composer install for new projects

[](#composer-install-for-new-projects)

```
  composer install
```

Getting Started
---------------

[](#getting-started)

```
use CrowdFlower\Account;
$crowd = new Account($apiKey);
```

Getting existing Jobs
---------------------

[](#getting-existing-jobs)

```
// get list of ten most recent jobs from account
$jobs = $crowd->getJobs();

// get list of ten jobs from account starting at page 2
$jobs = $crowd->getJobs(2);

// get job by job id
$job = $crowd->getJob($jobId);
```

Creating new Jobs
-----------------

[](#creating-new-jobs)

```
// create empty job
$job = $crowd->createJob();

// create job with job info
$job = $crowd->createJob(array(
    "title" => "A brand new job",
    "instructions" => "Follow these rules..."
));

// jobs can also be created from a copy of an existing job
$jobCopy = $crowd->getJob($jobId)->copy();
```

Adding Units
------------

[](#adding-units)

```
// create units from array
$units = $job->createUnits(array (
  array ("data" => array('column1' => 'value', 'column2' => 'value')),
  array ("data" => array('column1' => 'value2', 'column2' => 'value2'))
));

// units can also be created individually
$unit = $job->createUnit(array('data' => array('column1' => 'value', 'column2' => 'value')));
```

Adding Orders
-------------

[](#adding-orders)

```
// jobs can create orders
$order = $job->createOrder($numberOfUnits, $channels);
```

Notes
-----

[](#notes)

When attributes are updated via the setAttribute() method, the changes are tracked and only those are sent to CrowdFlower when an update is made.

The Request object is passed as a dependency in order to properly run tests.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17eff93d7630b0ebc01f4e372fdb1eb38f8884edfbf25fd3e67eda4aa8c9c168?d=identicon)[dadeg](/maintainers/dadeg)

---

Top Contributors

[![denheck](https://avatars.githubusercontent.com/u/235116?v=4)](https://github.com/denheck "denheck (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dadeg-php-crowdflower/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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