Download the PHP
package fobo/datamaker-sdk without Composer
On this page you can find all versions of the php package
fobo/datamaker-sdk. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor fobo Package datamaker-sdk Short Description Sender-side SDK for DataMaker forms: read a .dmf, verify the signature + FOBO attestation, sealed-box encrypt a submission, and POST it. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Sender-side SDK for DataMaker 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
Submit a form
Inspect trust before submitting
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
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
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.
Requiresphp Version
>=8.0 ext-sodium Version
* ext-zip Version
* ext-json Version
* ext-curl Version
*
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package fobo/datamaker-sdk contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.