PHPackages                             globiguard/globiguard - 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. globiguard/globiguard

ActiveLibrary

globiguard/globiguard
=====================

Official dependency-minimal PHP SDK for GlobiGuard trusted access workflows.

v0.2.2(yesterday)02↑2900%Apache-2.0PHPPHP &gt;=8.2CI passing

Since May 29Pushed todayCompare

[ Source](https://github.com/globiguard/globiguard-php)[ Packagist](https://packagist.org/packages/globiguard/globiguard)[ Docs](https://globiguard.com)[ RSS](/packages/globiguard-globiguard/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

globiguard-php
==============

[](#globiguard-php)

Official dependency-minimal PHP SDK for GlobiGuard.

The package has no Composer runtime package dependencies. It uses PHP built-ins plus required extensions (`json` and `sodium`) for HTTP, HMAC, JSON, and Ed25519 entitlement verification.

Install
-------

[](#install)

```
composer require globiguard/globiguard
```

Server client
-------------

[](#server-client)

```
use GlobiGuard\Client;
use GlobiGuard\Credential;

$client = Client::server([
    'environment' => 'sandbox',
    'services' => ['controlPlane' => 'https://api.globiguard.com'],
    'credential' => Credential::secret('proj_example', 'ggsk_example_replace_me', 'sandbox'),
]);

$decision = $client->governedActions()->authorizeActionOrThrow([
    'context' => [
        'actionType' => 'refund.create',
        'destination' => [
            'type' => 'custom',
            'name' => 'payments-production',
        ],
        'dataClasses' => ['CONFIDENTIAL'],
        'actor' => [
            'id' => 'support-agent-123',
            'type' => 'agent',
        ],
        'purpose' => 'Resolve an approved customer escalation',
        'correlationId' => 'case_456',
        'idempotencyKey' => 'case_456:refund:v1',
    ],
]);
```

The governed client also exposes approval polling, every queue review transition, evidence export, evidence-package summaries, and incident replay. `QUEUE` and `BLOCK` stop the authorize-or-throw path before the business action.

Webhooks
--------

[](#webhooks)

Pass the exact raw request body string from the framework. Do not parse and re-serialize JSON before verification.

```
$result = \GlobiGuard\TrustWebhook::verify($headers, $rawBody, 'whsec_example_replace_me');
if (!$result['ok']) {
    throw new RuntimeException($result['error']);
}
```

Development
-----------

[](#development)

```
composer validate --strict
php -l src/Globiguard.php
php tests/SmokeTest.php
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~21 days

Total

4

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0870162cbd6ab309aac984d901db9eac4c11ed2e772ea9628e8b27ce198174a?d=identicon)[globi](/maintainers/globi)

---

Top Contributors

[![guidegdm](https://avatars.githubusercontent.com/u/97523255?v=4)](https://github.com/guidegdm "guidegdm (7 commits)")

---

Tags

globiguardlaravelphpsdkAuditwebhookscomplianceapprovalglobiguardai-governance

### Embed Badge

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

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

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.5k38.3M172](/packages/owen-it-laravel-auditing)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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