PHPackages                             regalii/regaliator - 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. regalii/regaliator

ActiveLibrary

regalii/regaliator
==================

PHP client library for connecting to the Regalii API

1.0.1(9y ago)017.3k—9.8%[2 issues](https://github.com/regalii/regaliator_php/issues)PHPPHP &gt;=5.2

Since Dec 13Pushed 9y ago5 watchersCompare

[ Source](https://github.com/regalii/regaliator_php)[ Packagist](https://packagist.org/packages/regalii/regaliator)[ RSS](/packages/regalii-regaliator/feed)WikiDiscussions master Synced 1mo ago

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

Regalii PHP Client
==================

[](#regalii-php-client)

A PHP client for connecting to the Regalii API.

Usage
-----

[](#usage)

After requiring `regalii/regaliator` in your `composer.json` file, you can use the class like so:

```
$configuration = new Regaliator\Configuration([
  'version' => '3.1',
  'api_host' => 'api.casiregalii.com',
  'api_key' => getenv('REGALII_API_KEY'),
  'secret_key' => getenv('REGALII_SECRET')
]);
$regaliator = new Regaliator\Regaliator($configuration);

$response = $regaliator->account();

if ($response->success) {
  $data = json_decode($response->body, true);
} else {
  echo "Failed with status code {$response->status_code}";
}
```

The `$response` will be a `Response` object from the [Requests](http://requests.ryanmccue.info/) library.

Examples
--------

[](#examples)

Examples of some common use-cases:

### Creating a credential bill

[](#creating-a-credential-bill)

```
$response = $regaliator->create_credentials_bill(12376, 'login', 'challengeme');
$bill = json_decode($response->body, true);
echo "Created bill {$bill['id']}\n";
```

### Polling for while bill fetching

[](#polling-for-while-bill-fetching)

```
function poll_while_updating($regaliator, $id) {
  for($i = 0; $i < 60; $i++) {
    echo "Checking status for bill {$id} after sleeping 1 second\n";
    sleep(1);

    $response = $regaliator->show_bill($id);
    $bill = json_decode($response->body, true);

    if ($bill['status'] !== 'fetching') {
      return $bill;
    }
  }
  // raise exception because bill is still fetching
}

$bill = poll_while_updating($regaliator, $bill['id']);
```

### Answering MFA Challenge

[](#answering-mfa-challenge)

```
$response = $regaliator->update_bill_mfas($bill['id'], ['mfa_challenges' => [
  [
    'id' => $bill['mfa_challenges'][0]['id'],
    'type' => $bill['mfa_challenges'][0]['type'],
    'response' => '8'
  ]
]]);
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Every ~8 days

Total

7

Last Release

3383d ago

Major Versions

0.3.0.x-dev → 1.0.02017-01-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/56728f344c198efd5d7f04e97a03859997b7d55a7a37092de6ccde8bff59fad9?d=identicon)[regalii](/maintainers/regalii)

---

Top Contributors

[![leighhalliday](https://avatars.githubusercontent.com/u/603921?v=4)](https://github.com/leighhalliday "leighhalliday (14 commits)")

### Embed Badge

![Health badge](/badges/regalii-regaliator/health.svg)

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

###  Alternatives

[n98/magerun

Tools for managing Magento projects and installations

1.4k264.7k7](/packages/n98-magerun)[n98/magerun2

Tools for managing Magento projects and installations

928244.3k6](/packages/n98-magerun2)[razorpay/razorpay

Razorpay PHP Client Library

2024.8M44](/packages/razorpay-razorpay)[pubnub/pubnub

This is the official PubNub PHP SDK repository.

1314.6M17](/packages/pubnub-pubnub)[culqi/culqi-php

Cliente Culqi API para PHP

41356.8k1](/packages/culqi-culqi-php)[ahmadawais/sendy-php-api

Sendy PHP API Wrapper: Complete API interfacing.

8673.5k](/packages/ahmadawais-sendy-php-api)

PHPackages © 2026

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