PHPackages                             regzen/regzen-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. [API Development](/categories/api)
4. /
5. regzen/regzen-php

ActiveLibrary[API Development](/categories/api)

regzen/regzen-php
=================

Regzen PHP Client

v0.0.5(5y ago)18481MITPHPPHP &gt;=5.6.0

Since Jan 30Pushed 5y ago1 watchersCompare

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

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

Regzen PHP Library
==================

[](#regzen-php-library)

This library provides a simple interface for communicating with the Regzen API.

Documentation
-------------

[](#documentation)

-

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

[](#installation)

The preferred method of installing this library is with [Composer](https://getcomposer.org/) by running the following from your project root:

```
$ composer require regzen/regzen-php

```

Usage
-----

[](#usage)

### Instantiating the client

[](#instantiating-the-client)

Instantiate the client with your application secret:

```
$regzen = new \Regzen\RegzenClient('YOUR_APPLICATION_SECRET');

```

*Note: You should not keep your application secret in your source code, but rather retrieve it as the value of an environment variable.*

### Exchanging the authorization code

[](#exchanging-the-authorization-code)

Exchange the authorization code by calling `exchangeAuthorizationCode` on the client:

```
$response = $this->regzen->exchangeAuthorizationCode($authorizationCode);

```

You can later acces the user data like this:

```
$email = $response->data->email;

```

If the exchange fails, a `\Regzen\RegzenUnauthorizedException` will be thrown which you can catch and show the user appropriate feedback.

### Decrypting data

[](#decrypting-data)

When communicating with the Regzen API, you'll need to decrypt received data before any further use. Decrypt payload by calling `decryptPayload` on the client:

```
$payload = $this->regzen->decryptPayload($encryptedPayload);

```

You can later acces the payload data like this:

```
$fieldName = $payload->data->field_name;

```

If the decryption fails, a `\Regzen\RegzenUnauthorizedException` will be thrown which you can catch and show the user appropriate feedback.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Every ~53 days

Total

4

Last Release

2140d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3416582?v=4)[Regzen](/maintainers/Regzen)[@regzen](https://github.com/regzen)

---

Top Contributors

[![regzen-mark](https://avatars.githubusercontent.com/u/75017321?v=4)](https://github.com/regzen-mark "regzen-mark (4 commits)")

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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