PHPackages                             fobo/datamaker-sdk - 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. fobo/datamaker-sdk

ActiveLibrary[API Development](/categories/api)

fobo/datamaker-sdk
==================

Sender-side SDK for DataMaker forms: read a .dmf, verify the signature + FOBO attestation, sealed-box encrypt a submission, and POST it.

v1.0.0(2d ago)00MITPHPPHP &gt;=8.0

Since Jun 7Pushed 2d agoCompare

[ Source](https://github.com/FOBO-Tools/datamaker-php-sdk)[ Packagist](https://packagist.org/packages/fobo/datamaker-sdk)[ RSS](/packages/fobo-datamaker-sdk/feed)WikiDiscussions main Synced 2d ago

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

DataMaker PHP SDK
=================

[](#datamaker-php-sdk)

Sender-side SDK for [DataMaker](https://github.com/FOBO-Tools/fobo-data-maker) forms: read a `.dmf`, verify its signature + FOBO attestation, sealed-box encrypt a submission, and POST it. The wire envelope is byte-exact with the .NET / Python / JS SDKs.

Requires PHP 8.0+ with `ext-sodium`, `ext-zip`, `ext-json`, `ext-curl`.

Install
-------

[](#install)

```
composer require fobo/datamaker-sdk
```

Submit a form
-------------

[](#submit-a-form)

```
use DataMaker\Sdk\Client;

$dmf = file_get_contents('contact.dmf');

$result = Client::submit([
    'dmf'    => $dmf,                                  // verifies signature + form hash
    'values' => ['email' => 'ada@example.com', 'full_name' => 'Ada'],
]);
// => ['submissionId' => '...', 'editToken' => '...', 'formId' => 'contact_form']
```

Inspect trust before submitting
-------------------------------

[](#inspect-trust-before-submitting)

```
use DataMaker\Sdk\DmfReader;

$form = DmfReader::read($dmf);

if ($form->isFoboVerified()) {
    $a = $form->foboVerification;
    echo "Verified by FOBO as {$a['email']}";        // + $a['company'] when admin-verified
}
if ($form->acceptsSubmissions()) {
    // sealed-box recipient present — submissions are E2E-encrypted to the publisher
}
```

`DmfReader::read` verifies the publisher's Ed25519 signature over the manifest and the `form.json` hash, and independently verifies the FOBO attestation against the baked-in root pubkey (Ed25519 sig + version + key match + expiry). Failure of the attestation is non-fatal — the form stays self-signed-usable; only `isFoboVerified()` reflects it.

Build without sending
---------------------

[](#build-without-sending)

```
use DataMaker\Sdk\Client;
use DataMaker\Sdk\DmfReader;

$form  = DmfReader::read($dmf);
$built = Client::buildSubmission($form, ['email' => 'ada@example.com']);
// $built['envelope'] is the SubmissionEnvelope; POST it yourself, or:
$result = Client::postSubmission($built['envelope']);
```

Errors
------

[](#errors)

All throw `DataMaker\Sdk\DataMakerError` with a stable `->errorCode` string:

Class`errorCode``DmfError``DMF_INVALID``ValidationError` (carries `->issues`)`VALIDATION_FAILED``SubmissionError` (carries `->status`, `->body`)`SUBMISSION_REJECTED`> PHP's `Exception::getCode()` is an int, so the SDK's machine-readable code lives in `->errorCode` (the JS/Python `.code` equivalent).

Scope
-----

[](#scope)

Sender-side only — read a `.dmf` and submit. It does **not** decrypt or receive submissions; that's the form owner's app, which guards the X25519 private half.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance99

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

2d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17250256?v=4)[Chivan Tiebosch](/maintainers/chivantiebosch)[@ChivanTiebosch](https://github.com/ChivanTiebosch)

---

Top Contributors

[![ChivanCOM](https://avatars.githubusercontent.com/u/184405984?v=4)](https://github.com/ChivanCOM "ChivanCOM (5 commits)")

---

Tags

Formse2eedatamakerfobosealed-box

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fobo-datamaker-sdk/health.svg)

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

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

90923.5M35](/packages/facebook-php-business-sdk)[activecampaign/api-php

Official PHP wrapper for the ActiveCampaign API.

1172.3M12](/packages/activecampaign-api-php)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2171.2k2](/packages/convertkit-convertkitapi)

PHPackages © 2026

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