PHPackages                             humantocomputer/universign - 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. humantocomputer/universign

ActiveLibrary[API Development](/categories/api)

humantocomputer/universign
==========================

PHP library for universign

v1.0.12(3mo ago)091[1 PRs](https://github.com/humantocomputer/universign/pulls)MITPHPCI passing

Since Aug 13Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/humantocomputer/universign)[ Packagist](https://packagist.org/packages/humantocomputer/universign)[ Docs](https://github.com/humantocomputer/universign)[ RSS](/packages/humantocomputer-universign/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

Universign PHP Library
======================

[](#universign-php-library)

This library is unofficial, not developed by Universign.

This library is based on  but seems abonned. So we forked the project to make our own modification.

---

How to use
----------

[](#how-to-use)

You can copy-paste the following code and it will automatically connect you to your universign account.

### Fill constants

[](#fill-constants)

```
$ACCOUNT_USER_MAIL = 'email@domain.fr';
$ACCOUNT_USER_PASSWORD = 'xxxxxxxxx';
$UNIVERSIGN_PROFILE = 'default'; // you don't have to change this one, if you want to, read the manual
```

### Create signature fields

[](#create-signature-fields)

```
$signatureField1 = new DocSignatureField();
$signatureField1->setPage(1)
                ->setX(10)
                ->setY(230)
                ->setSignerIndex(0);
```

### Get your document

[](#get-your-document)

```
$document = new TransactionDocument();
$document
    ->setContent(file_get_contents('path/to/file/file.pdf'))
    ->addSignatureField($signatureField1) // you can add multiples times ->addSignatureField($signatureField2) etc...
    ->setName('Document name');
```

### Create signers

[](#create-signers)

```
$signer = new TransactionSigner();
$signer
    ->setFirstname('Doe')
    ->setLastname('John')
    ->setEmailAddress('johndoe@gmail.com')
    ->setPhoneNum('0606060606')
    ->setBirthDate('19900131T00:00:00') // This format is needed yyyymmddT00:00:00 as string for 31/01/1990
    ->setSuccessURL('https://www.universign.eu/fr/sign/success/')
    ->setCancelURL('https://www.universign.eu/fr/sign/cancel/')
    ->setFailURL('https://www.universign.eu/fr/sign/failed/');

```

### Create transaction

[](#create-transaction)

```
$request = new TransactionRequest();
$request
    ->addSigner($signer) // you can add multiples times ->addSignatureField($signer2) etc...
    ->addDocument($document) // you can add multiples times ->addDocument($document2) etc...
    ->setProfile($UNIVERSIGN_PROFILE)
    ->setCustomId(uniqid()) // create your own ID to make easier to get later
    ->setMustContactFirstSigner(false)
    ->setFinalDocSent(true)
    ->setDescription("This is my description")
    ->setCertificateType(TransactionRequestCertificate::CERTIFICATE_CERTIFIED)
    ->setLanguage(TransactionRequestLanguage::FRENCH)
    ->setHandwrittenSignature(true)
    ->setChainingMode(TransactionRequestChainingMode::CHAINING_MODE_EMAIL)
    ->setFinalDocRequesterSent(false)
    ->setFinalDocCCeMails(['yourmail@yourdomain.com']);
```

### Transaction request

[](#transaction-request)

```
$requester = new Requester($ACCOUNT_USER_MAIL, $ACCOUNT_USER_PASSWORD, false);
$requester->requestTransaction($request);
```

### Transaction response

[](#transaction-response)

```
$transactionId = $response->getId();
$transactionUrl = $response->getUrl();
```

### Get documents

[](#get-documents)

```
$response = $requester->getDocuments('TRANSACTIONID');
$response = $requester->getDocumentsByCustomId('CUSTOMID');
```

### Get Transaction info

[](#get-transaction-info)

```
$response = $requester->getTransactionInfo('TRANSACTIONID');
```

### Send SEPA

[](#send-sepa)

Replace your document by :

```
$sepaFrom = new SEPAThirdParty();
$sepaFrom
    ->setName('from')
    ->setAddress('this address')
    ->setPostalCode('69001')
    ->setCity('Lyon')
    ->setCountry('France');

$sepaTo = new SEPAThirdParty();
$sepaTo
    ->setName('to')
    ->setAddress('to address')
    ->setPostalCode('69002')
    ->setCity('Lyon')
    ->setCountry('France');

$sepa = new SEPAData();
$sepa
    ->setIcs('XXXXXXXXXXXXX')
    ->setIban('FR7616798000010000191892XXXX')
    ->setBic('TRZOFR21XXX')
    ->setDebtor($sepaFrom)
    ->setCreditor($sepaTo);

$document = new TransactionDocument();
$document
    ->setDocumentType(TransactionDocumentType::SEPA)
    ->setName('SEPA')
    ->setSEPAData($sepa);
```

Issues
------

[](#issues)

### Classes not found

[](#classes-not-found)

Do not forget to include your autoload and all classes

```
require __DIR__ . '/vendor/autoload.php';

use HumanToComputer\Universign\{
    Request\TransactionDocument,
    Request\TransactionSigner,
    ...
};
```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance85

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Recently: every ~281 days

Total

12

Last Release

93d ago

### Community

Maintainers

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

---

Top Contributors

[![YohannHTC](https://avatars.githubusercontent.com/u/3177431?v=4)](https://github.com/YohannHTC "YohannHTC (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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