This add-on offers an individual signature module and helper functionalities for the SetaPDF-Signer Component that allows you to use the Swisscom MAB (multi authentication broker) and ETSI RDSC Service to digital sign PDF documents in pure PHP.
Currently, the implementation mainly adds some helpers to make the communication with the Swisscom API easier. Only PAR requests are demonstrated and implemented yet.
To use this add-on you need credentials for the Swisscom MAB + ETSI RDSC webservice - also known as Smart Registration & Signing Service with Multiple Authentication Broker.
This add-on is developed and tested on PHP >= 8.0. Requirements of the SetaPDF-Signer component can be found here.
We're using PSR-17 (HTTP Factories) and PSR-18 (HTTP Client) for the requests. So you'll need an implementation of these. We recommend using Guzzle. Note: Your implementation must support client-side certificates.
"require" : {
"guzzlehttp/guzzle": "^7.0",
"http-interop/http-factory-guzzle": "^1.0"
}
Add following to your composer.json:
{
"require": {
"setasign/setapdf-signer-addon-swisscom-mab_etsi-rdsc": "dev-main"
},
"repositories": [
{
"type": "composer",
"url": "https://www.setasign.com/downloads/"
}
]
}
and execute composer update
. You need to define the repository
to resolve the dependency to the
SetaPDF-Signer component
(see here for more details).
This package is open-sourced software licensed under the MIT license.