PHPackages                             firstlogicmetalab/vact-server - 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. firstlogicmetalab/vact-server

ActiveLibrary

firstlogicmetalab/vact-server
=============================

Server-only VACT client: mint access tokens and verify webhooks. No dependencies.

v1.0.1(today)01↑2900%proprietaryPHPPHP &gt;=8.1

Since Jul 23Pushed todayCompare

[ Source](https://github.com/danishktabbas/vact-server-php)[ Packagist](https://packagist.org/packages/firstlogicmetalab/vact-server)[ Docs](https://vact.online/docs.html)[ RSS](/packages/firstlogicmetalab-vact-server/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

`firstlogicmetalab/vact-server`
===============================

[](#firstlogicmetalabvact-server)

Server-only VACT client for PHP. **No Composer dependencies** — just `ext-curl` and `ext-json`.

```
composer require firstlogicmetalab/vact-server
```

Your backend is the only place the App Secret ever lives. It authenticates your own user, then asks VACT for a short-lived token scoped to them.

```
use Vact\VactServer;

$vact = new VactServer(
    getenv('VACT_APP_ID'),
    getenv('VACT_APP_SECRET'),
);

// After YOUR login has decided who this is:
$token = $vact->createAccessToken(
    userId: $currentUser->id,
    allowedCalleeIds: ['user_42'],   // optional: restrict who they may call
);

header('Content-Type: application/json');
echo json_encode(['accessToken' => $token['accessToken']]);
```

Verifying webhooks
------------------

[](#verifying-webhooks)

Read the **raw body**. Using `$_POST` or a re-encoded array changes the bytes and the signature will not match.

```
use function Vact\verifyVactWebhook;
use Vact\VactServerError;

$raw = file_get_contents('php://input');
try {
    $event = verifyVactWebhook($raw, getallheaders(), getenv('VACT_WEBHOOK_SECRET'));
} catch (VactServerError $e) {   // $e->errorCode is stable
    http_response_code(400);   // never process an unverified body
    exit;
}

// Deduplicate on $event['eventId'] — delivery is retried.
if ($event['type'] === 'incoming_call') {
    sendPush($event['data']['toUserId'], $event['data']);
}
http_response_code(200);
```

Verification is timing-safe (`hash_equals`) and rejects deliveries whose timestamp is more than five minutes old, which stops replay.

Deleting a user's data
----------------------

[](#deleting-a-users-data)

```
$result = $vact->deleteUserData($userId);   // pages internally until complete
```

Full documentation:

Errors
------

[](#errors)

`VactServerError` carries `errorCode` (stable, e.g. `invalid_signature`) and `status` (the HTTP code, when there was one). It is named `errorCode` rather than `code` because PHP's built-in `Exception` already reserves `$code` for an integer.

Testing
-------

[](#testing)

```
php tests/run.php
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

0d ago

### Community

Maintainers

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

---

Top Contributors

[![danishktabbas](https://avatars.githubusercontent.com/u/33920392?v=4)](https://github.com/danishktabbas "danishktabbas (2 commits)")

---

Tags

WebRTCvoipvideo-callcallingvact

### Embed Badge

![Health badge](/badges/firstlogicmetalab-vact-server/health.svg)

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

###  Alternatives

[marcelog/pami

Asterisk Manager Interface (AMI) client for PHP, event driven, object oriented

418773.0k1](/packages/marcelog-pami)[opentok/opentok

OpenTok is a platform for creating real time streaming video applications, created by TokBox.

1443.2M10](/packages/opentok-opentok)[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

81418.2k](/packages/php-junior-laravel-video-chat)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[mikopbx/core

Free PBX system for SMB based on Asterisk

5581.4k](/packages/mikopbx-core)[signalwire-community/signalwire

Client library for connecting to SignalWire.

23147.2k](/packages/signalwire-community-signalwire)

PHPackages © 2026

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