PHPackages                             digitalcz/digisign - 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. digitalcz/digisign

ActiveLibrary

digitalcz/digisign
==================

DigiSign PHP library - provides communication with https://api.digisign.org in PHP via PSR-18 HTTP Client

v2.11.0(6mo ago)539.6k—8.6%9[4 PRs](https://github.com/digitalcz/digisign/pulls)MITPHPPHP ^8.0CI passing

Since Oct 16Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/digitalcz/digisign)[ Packagist](https://packagist.org/packages/digitalcz/digisign)[ Docs](https://www.digisign.cz)[ RSS](/packages/digitalcz-digisign/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (59)Used By (0)

digisign
========

[](#digisign)

[![Latest Version on Packagist](https://camo.githubusercontent.com/121eca8ab78360bf13e95930a9bb6d5b49939618d01ac3297722d952b94a19c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c637a2f646967697369676e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalcz/digisign)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)![CI](https://github.com/digitalcz/digisign/workflows/CI/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/61340af0d02efa1b258f2fe93c80684f226ccdebced28b54e33075f51d0e896d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6469676974616c637a2f646967697369676e2f6261646765732f7175616c6974792d73636f72652e706e673f623d312e78)](https://scrutinizer-ci.com/g/digitalcz/digisign/?branch=1.x)[![codecov](https://camo.githubusercontent.com/32d9c0a7a46cc4c214d8d1cd928459c2a58a452dc70262953d1cf6b870eab028/68747470733a2f2f636f6465636f762e696f2f67682f6469676974616c637a2f646967697369676e2f67726170682f62616467652e7376673f746f6b656e3d4d713031724862746273)](https://codecov.io/gh/digitalcz/digisign)[![Total Downloads](https://camo.githubusercontent.com/5562e07470cf13d8e2f9077700e92ffacb56f82cc535cd418328c14e228c46e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c637a2f646967697369676e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalcz/digisign)

[DigiSign](https://www.digisign.cz) PHP library - provides communication with  in PHP using PSR-18 HTTP Client, PSR-17 HTTP Factories and PSR-16 SimpleCache.

API documentation is here

Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
$ composer require digitalcz/digisign
```

Configuration
-------------

[](#configuration)

#### Example configuration in PHP

[](#example-configuration-in-php)

```
use DigitalCz\DigiSign\Auth\ApiKeyCredentials;
use DigitalCz\DigiSign\DigiSign;

// Via constructor options
$dgs = new DigiSign([
    'access_key' => '...',
    'secret_key' => '...'
]);

// Or via methods
$dgs = new DigiSign();
$dgs->setCredentials(new ApiKeyCredentials('...', '...'));
```

#### Available constructor options

[](#available-constructor-options)

- `access_key` - string; ApiKey access key
- `secret_key` - string; ApiKey secret key
- `credentials` - DigitalCz\\DigiSign\\Auth\\Credentials instance
- `client` - DigitalCz\\DigiSign\\DigiSignClient instance with your custom PSR17/18 objects
- `http_client` - Psr\\Http\\Client\\ClientInterface instance of your custom PSR18 client
- `cache` - Psr\\SimpleCache\\CacheInterface for caching Credentials Tokens
- `sandbox` - bool; whether to use sandbox or production API
- `api_base` - string; override the base API url
- `signature_tolerance` - int; The tolerance for webhook signature age validation (in seconds)

#### Available configuration methods

[](#available-configuration-methods)

```
use DigitalCz\DigiSign\Auth\Token;
use DigitalCz\DigiSign\Auth\TokenCredentials;
use DigitalCz\DigiSign\DigiSign;
use DigitalCz\DigiSign\DigiSignClient;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Psr16Cache;
use Symfony\Component\HttpClient\Psr18Client;

$dgs = new DigiSign();
// To set your own PSR-18 HTTP Client, if not provided Psr18ClientDiscovery is used
$dgs->setClient(new DigiSignClient(new Psr18Client()));
// If you already have the auth-token, i can use TokenCredentials
$dgs->setCredentials(new TokenCredentials(new Token('...', 123)));
// Cache will be used to store auth-token, so it can be reused in later requests
$dgs->setCache(new Psr16Cache(new FilesystemAdapter()));
// Use sandbox API (https://api.staging.digisign.org)
$dgs->useSandbox(true);
// Overwrite API base
$dgs->setApiBase('https://example.com/api');
// Set maximum age of webhook request to one minute
$dgs->setSignatureTolerance(60);
```

#### Example configuration in Symfony

[](#example-configuration-in-symfony)

```
services:
  DigitalCz\DigiSign\DigiSign:
    $options:
      # minimal config
      access_key: '%digisign.accessKey%'
      secret_key: '%digisign.secretKey%'

      # other options
      cache: '@psr16.cache'
      http_client: '@psr18.http_client'
      sandbox: true # use sandbox API
```

Usage
-----

[](#usage)

#### Create and send Envelope

[](#create-and-send-envelope)

```
$dgs = new DigitalCz\DigiSign\DigiSign(['access_key' => '...', 'secret_key' => '...']);

$envelopes = $dgs->envelopes();

$envelope = $envelopes->create([
    'emailSubject' => 'Please sign',
    'emailBody' => 'Hello James, please sign these documents.',
    'senderName' => 'John Smith',
    'senderEmail' => 'john.smith@example.com'
]);

$recipient = $envelopes->recipients($envelope)->create([
    'role' => 'signer',
    'name' => 'James Brown',
    'email' => 'james42@example.com',
    'mobile' => '+420775300500',
]);

$stream = DigitalCz\DigiSign\Stream\FileStream::open('path/to/document.pdf');
$file = $dgs->files()->upload($stream);

$document = $envelopes->documents($envelope)->create([
    'name' => 'Contract',
    'file' => $file->self()
]);

$tag = $envelopes->tags($envelope)->create([
    'type' => 'signature',
    'document' => $document,
    'recipient' => $recipient,
    'page' => 1,
    'xPosition' => 200,
    'yPosition' => 340
]);

$envelopes->send($envelope->id());
```

See [examples](examples) for more

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer csfix    # fix codestyle
$ composer checks   # run all checks

# or separately
$ composer tests    # run phpunit
$ composer phpstan  # run phpstan
$ composer cs       # run codesniffer
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Digital Solutions s.r.o.](https://github.com/digitalcz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~68 days

Total

38

Last Release

54d ago

Major Versions

v0.1.4 → v1.0.02021-05-25

v1.13.0 → v2.0.02023-07-12

PHP version history (4 changes)v0.1.0PHP ~7.2

v1.0.0PHP ^7.4 || ^8.0

v1.1.0PHP ^7.2 || ^8.0

v1.13.0PHP ^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/3cdd1a59b82ee65304942a9e50a35ed1628b43db456088c334e73f8e80db9237?d=identicon)[spajxo](/maintainers/spajxo)

![](https://avatars.githubusercontent.com/u/4673494?v=4)[Filip Klouček](/maintainers/fidovo)[@fidovo](https://github.com/fidovo)

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

---

Top Contributors

[![spajxo](https://avatars.githubusercontent.com/u/12384486?v=4)](https://github.com/spajxo "spajxo (184 commits)")[![IamDejv](https://avatars.githubusercontent.com/u/56268618?v=4)](https://github.com/IamDejv "IamDejv (102 commits)")[![tomasDostalDS](https://avatars.githubusercontent.com/u/135800096?v=4)](https://github.com/tomasDostalDS "tomasDostalDS (88 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (31 commits)")[![PavelVais](https://avatars.githubusercontent.com/u/2963821?v=4)](https://github.com/PavelVais "PavelVais (27 commits)")[![mertic18](https://avatars.githubusercontent.com/u/47573820?v=4)](https://github.com/mertic18 "mertic18 (26 commits)")[![fidovo](https://avatars.githubusercontent.com/u/4673494?v=4)](https://github.com/fidovo "fidovo (17 commits)")[![Pepperoni1337](https://avatars.githubusercontent.com/u/107676055?v=4)](https://github.com/Pepperoni1337 "Pepperoni1337 (16 commits)")[![libordan](https://avatars.githubusercontent.com/u/88707876?v=4)](https://github.com/libordan "libordan (5 commits)")[![nedvajz](https://avatars.githubusercontent.com/u/1135477?v=4)](https://github.com/nedvajz "nedvajz (3 commits)")[![berkapavel](https://avatars.githubusercontent.com/u/498030?v=4)](https://github.com/berkapavel "berkapavel (3 commits)")[![prosteNoBody](https://avatars.githubusercontent.com/u/58467831?v=4)](https://github.com/prosteNoBody "prosteNoBody (3 commits)")

---

Tags

digisignesignaturephpphpdigisigndigi-signdigisign.orgdigisign.cz

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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