PHPackages                             simplicate/rainforest-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. simplicate/rainforest-auth

AbandonedArchivedPackage[Authentication &amp; Authorization](/categories/authentication)

simplicate/rainforest-auth
==========================

PHP port of Rainforest QA's rainforestapp/auth Ruby gem - allows verification of Rainforest webhook messages using your private API key.

1.0(7y ago)08MITPHPPHP &gt;=7.0

Since Jan 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/simplicate-software/rainforest-auth-php)[ Packagist](https://packagist.org/packages/simplicate/rainforest-auth)[ Docs](https://www.simplicate.nl)[ RSS](/packages/simplicate-rainforest-auth/feed)WikiDiscussions master Synced 3d ago

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

Simplicate - Rainforest Auth
============================

[](#simplicate---rainforest-auth)

A simple PHP port of Rainforest QA's Ruby auth gem which allows verification of [Rainforest](https://www.rainforestqa.com/) webhook messages using your private API key.

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

[](#installation)

Run `composer require simplicate/rainforest-auth` or add it to your `composer.json` manually:

```
{
  "require": {
    "simplicate/rainforest-auth": "^1.0"
  }
}

```

API key
-------

[](#api-key)

The API key can be found under the [Accounts setting page](https://app.rainforestqa.com/settings/account). **Please note**: the token used MUST be the account owner his or her token!

Examples
--------

[](#examples)

Checking if the signature is valid:

```
$apiKey = 'abc';

// Should be safe data from the $_POST var
$post = [
  'digest'        => 'abc',
  'callback_type' => 'before_run',
  'options'       => [
    'run_id' => 123123,
  ],
];

$auther = new \Simplicate\Rainforest\Auther($apiKey);

if(!$auther->verify($digest, $callbackType, $options)) {
  throw new \Exception('Could not verify that the request came from Rainforest');
}

// Everything's all right! Do your housekeeping.
```

If you have a job that's going to take longer than 25 seconds, [Rainforest advises](https://help.rainforestqa.com/developer-tools/integrations/webhooks#advanced-webhooks) you respond immediately with a 202 Accepted, and send a POST request when you're ready for Rainforest to continue:

```
// Same payload as before

$callbackUrl = $auther->getCallbackUrl($post['options']['run_id'], $post['callback_type']);

// Make a POST request to this URL through php-curl, or your preferred HTTP client
```

License
-------

[](#license)

MIT License.

Copyright
---------

[](#copyright)

Copyright (c) 2018 Simplicate Software B.V.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

2681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/735929412af464e45c18d0b1babaff3256e313f672a5dc183234091e08b6b09d?d=identicon)[simplicate](/maintainers/simplicate)

---

Top Contributors

[![Ma-ve](https://avatars.githubusercontent.com/u/11227996?v=4)](https://github.com/Ma-ve "Ma-ve (6 commits)")

---

Tags

simplicaterainforestrainforestqa

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/simplicate-rainforest-auth/health.svg)

```
[![Health](https://phpackages.com/badges/simplicate-rainforest-auth/health.svg)](https://phpackages.com/packages/simplicate-rainforest-auth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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