PHPackages                             banalitoraulito/simplysign - 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. banalitoraulito/simplysign

ActiveLibrary[API Development](/categories/api)

banalitoraulito/simplysign
==========================

Certum SimplySign Client

v2.1(3y ago)021PHPPHP &gt;=5.5

Since Aug 22Pushed 3y agoCompare

[ Source](https://github.com/BanalitoRaulito/php-library-simplysign-fork)[ Packagist](https://packagist.org/packages/banalitoraulito/simplysign)[ RSS](/packages/banalitoraulito-simplysign/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (8)Used By (0)

About
=====

[](#about)

[![Build Status](https://camo.githubusercontent.com/4d8b08d797a10e0e80b6e480bda6df39ab4d604b6e65ea9cf0673b2637ea4da7/68747470733a2f2f7472617669732d63692e6f72672f776562696e762f7068702d6c6962726172792d73696d706c797369676e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webinv/php-library-simplysign)[![Latest Stable Version](https://camo.githubusercontent.com/4d0e028ac7d3a45e0f74a691b1b3faf9894237e3b88c90d90ec076336c0f1bb2/68747470733a2f2f706f7365722e707567782e6f72672f776562696e762f73696d706c797369676e2f762f737461626c65)](https://packagist.org/packages/webinv/simplysign)[![Total Downloads](https://camo.githubusercontent.com/b5466099d360db8d8d3b3690b976f28158f51fa7c8d788a8ddc871a073b3a8cb/68747470733a2f2f706f7365722e707567782e6f72672f776562696e762f73696d706c797369676e2f646f776e6c6f616473)](https://packagist.org/packages/webinv/simplysign)[![Latest Unstable Version](https://camo.githubusercontent.com/25bea05e915a769e52741470468db41624d71618a942d38266fdc0cd4d64d082/68747470733a2f2f706f7365722e707567782e6f72672f776562696e762f73696d706c797369676e2f762f756e737461626c65)](https://packagist.org/packages/webinv/simplysign)[![License](https://camo.githubusercontent.com/3af82bc0bc8751806f7c0ad5ed938d1c03ff18ed62882d1e022805a763db74b5/68747470733a2f2f706f7365722e707567782e6f72672f776562696e762f73696d706c797369676e2f6c6963656e7365)](https://packagist.org/packages/webinv/simplysign)

SimplySign webservice client

Installation
============

[](#installation)

`composer require webinv/simplysign`

Usage
=====

[](#usage)

1. Configuration
----------------

[](#1-configuration)

```
use Webinv\SimplySign\Connection;
use Webinv\SimplySign\Client\Authorization;

$connection = new Connection([
    'client_id' => '**client_id**',
    'client_secret' => '**client_secret**',
    'domain' => Connection::DOMAIN_TEST
]);

```

2. Authorization
----------------

[](#2-authorization)

### 2.1 Authorization Code

[](#21-authorization-code)

```
use Webinv\SimplySign\Client\Authorization;

$client = new Authorization($connection);
$redirectUrl = 'http://example.com/02-authorization-grant-token.php';

if (isset($_GET['code'])) {
    $token = $client->getAccessTokenByAuthorizationCode($redirectUrl, $_GET['code']);
    print_r($token);
} else {
    header(sprintf('Location: %s', $client->getAuthorizationUrl($redirectUrl)));
}

```

### 2.2 Resource Owner Password Credentials

[](#22-resource-owner-password-credentials)

```
use Webinv\SimplySign\Client\Authorization;

$client = new Authorization($connection);
$token = $client->getAccessTokenByEmailPassword('example@domain.com', '******');

```

2. Signing PDF document
-----------------------

[](#2-signing-pdf-document)

```
use Webinv\SimplySign\Client\SignatureFormatServicePades;
use Webinv\SimplySign\Model\Pades\SigningRequest;
use Webinv\SimplySign\Model\Pades\Signing\Credentials;

$client = new SignatureFormatServicePades($connection);

// Create token or you can obrain a new one
$token = new \Webinv\SimplySign\Model\Token([
    'access_token' => '*******************************************',
    'token_type' => 'bearer',
    'expires_in' => 7200,
    'refresh_token' => '*******************************************'
]);

$credentials = new Credentials();
$credentials->setCard('*******');
$credentials->setPin('*******');
$credentials->setToken($token->getAccessToken());

$signingRequest = new SigningRequest();
$signingRequest->setCertificateFile(__DIR__ . '/example.pem');
$signingRequest->setFile(__DIR__ . '/example.pdf');
$signingRequest->setCredentials($credentials);

$signed = $client->sign($signingRequest, $token);

file_put_contents(__DIR__ . '/signed_document.pdf', base64_decode($signed));

```

3. Certificates list
--------------------

[](#3-certificates-list)

```
use Webinv\SimplySign\Connection;
use Webinv\SimplySign\Client\SoftCardService;

$connection = new Connection([
    'client_id' => '**client_id**',
    'client_secret' => '**client_secret**',
    'domain' => Connection::DOMAIN_TEST
]);

$client = new SoftCardService($connection);

$token = new \Webinv\SimplySign\Model\Token([
    'access_token' => '*******************************************',
    'token_type' => 'bearer',
    'expires_in' => 7200,
    'refresh_token' => '*******************************************'
]);

$certificates = $client->getCertificates('**card***', $token);
foreach ($certificates as $certificate) {
    echo 'File: ' . $certificate->getFilename() . "\n\n";
    echo $certificate->getContent() . "\n\n";
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.4% 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 ~7 days

Total

3

Last Release

1345d ago

Major Versions

v1.0 → v2.02022-09-05

### Community

Maintainers

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

---

Top Contributors

[![kardasz](https://avatars.githubusercontent.com/u/1894170?v=4)](https://github.com/kardasz "kardasz (17 commits)")[![BanalitoRaulito](https://avatars.githubusercontent.com/u/60259676?v=4)](https://github.com/BanalitoRaulito "BanalitoRaulito (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/banalitoraulito-simplysign/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)

PHPackages © 2026

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