PHPackages                             crowdtruth/ddgameapi - 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. crowdtruth/ddgameapi

ActiveLibrary[API Development](/categories/api)

crowdtruth/ddgameapi
====================

V0.1(10y ago)1703[2 issues](https://github.com/CrowdTruth/DrDetectiveAPI/issues)1PHPPHP &gt;=5.3.0

Since Jun 12Pushed 9y ago10 watchersCompare

[ Source](https://github.com/CrowdTruth/DrDetectiveAPI)[ Packagist](https://packagist.org/packages/crowdtruth/ddgameapi)[ RSS](/packages/crowdtruth-ddgameapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

DrDetectiveAPI
==============

[](#drdetectiveapi)

API for communication between [Dr. Detective](https://github.com/CrowdTruth/DrDetective) and [CrowdTruth](https://github.com/CrowdTruth/CrowdTruth).

Package installation
--------------------

[](#package-installation)

The API is available as a plugin for CrowdTruth, which can be installed via [Packagist](https://packagist.org/packages/crowdtruth/ddgameapi). To install the API in CrowdTruth, edit your *composer.json* file to include *crowdtruth/ddgameapi*:

```
{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  ...
  "require": {
    ...
    "crowdtruth/ddgameapi": "*",
    ...
  },
  ...
}

```

Use composer to install the package:

```
[CrowdTruth]$ composer update

```

Add the *DDGameapiServiceProvider* to the list of providers in your *app/config/app.php* file:

```
...
'providers' => array(
  ...
  'CrowdTruth\DDGameapi\DDGameapiServiceProvider',
  ...
),
...

```

Run the package migrations to add the required software components to the CrowdTruth database:

```
[CrowdTruth]$ php artisan db:seed --class="CrowdTruth\DDGameapi\DDGameAPISeeder"

```

Next, package needs to be configured to communicate with the Dr. Detective game. For this, you must first export the configuration file:

```
[CrowdTruth]$ php artisan config:publish crowdtruth/ddgameapi

```

and afterwards edit the URL field on the configuration file *app/config/packages/crowdtruth/ddgameapi/config.php*:

```
return array(
	'URL' => 'http:///admin-games/api',
);

```

set the URL to the location where your game instance is installed, for example **.

Last but not least, go to the instructions for configuring this API specific to your game instance. For example

If everything went well, the API has been succesfully installed.

API description
---------------

[](#api-description)

The API enables a webhook on the following URL: *http://&lt;your-CrowdTruth-instance&gt;/game/detective/*. This webhook is called from Dr. Detective to send judgments to CrowdTruth. API requests must contain 3 elements (in a JSON structure)

- *signal* -- Signal to be processed. 'new\_judgments' for new judgments
- *payload* -- a JSON structure with the judgments
- *signature* -- SHA1(payload + API\_KEY)

Example:

```
{
  "signal": "new_judgments",
  "payload": [
    {
      ...
    },
  ],
  "signature": "f04d10c"
}

```

The response to such call is also a JSON structure containing:

- *signal* -- Signal received
- *status* -- Return status (ok or error)
- *message* -- Message with additional information.

```
{
  "signal": "new_judgments",
  "status": "ok",
  "message": "1 processed"
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

3994d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7782231?v=4)[Carlos Martinez](/maintainers/c-martinez)[@c-martinez](https://github.com/c-martinez)

---

Top Contributors

[![MerelvanEmpel](https://avatars.githubusercontent.com/u/8793404?v=4)](https://github.com/MerelvanEmpel "MerelvanEmpel (32 commits)")[![c-martinez](https://avatars.githubusercontent.com/u/7782231?v=4)](https://github.com/c-martinez "c-martinez (10 commits)")[![Bouncer](https://avatars.githubusercontent.com/u/103966425?v=4)](https://github.com/Bouncer "Bouncer (1 commits)")

### Embed Badge

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

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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