setasign / setapdf-signer-addon-swisscomais
A signature module and batch processor for the SetaPDF-Signer component wrapping the Swisscom AIS webservice.
Installs: 34 113
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 4
Requires
- php: >=7.1
- ext-json: *
- ext-openssl: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- setasign/setapdf-signer: ^2.40.4
Requires (Dev)
- guzzlehttp/guzzle: ^6.5
- http-interop/http-factory-guzzle: ^1.0
- mjelamanov/psr18-guzzle: ^1.3
This package is auto-updated.
Last update: 2023-11-19 22:43:02 UTC
README
This package offers an individual module for the SetaPDF-Signer Component that allows you to use the Swisscom All-in Signing Service for the signature process of PDF documents. A big advantage of this module is, that it only transfers the hash, that should be signed, to Swisscom AIS webservice and not the complete PDF document. The returned signature will be placed in the PDF document by the SetaPDF-Signer Component.
Furthermore, this add-on comes with a batch class allowing to digital sign several documents with a single webservice call.
The implementation is based on the All-in Signing Service Reference Guide Version 2.10.
The form for requesting a test account at Swisscom includes the Claimed IDs for testing and is available here.
Requirements
To use this package you need credentials for the Swisscom AIS webservice.
This package is developed and tested on PHP >= 7.1. 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.
For PHP 7.1
"require" : {
"guzzlehttp/guzzle": "^6.5",
"http-interop/http-factory-guzzle": "^1.0",
"mjelamanov/psr18-guzzle": "^1.3"
}
For >= PHP 7.2
"require" : {
"guzzlehttp/guzzle": "^7.0",
"http-interop/http-factory-guzzle": "^1.0"
}
Installation
Add following to your composer.json:
{ "require": { "setasign/setapdf-signer-addon-swisscomais": "^2.0" }, "repositories": [ { "type": "composer", "url": "https://www.setasign.com/downloads/" } ] }
and execute composer update
. You need to define the repository
to evaluate the dependency to the
SetaPDF-Signer component
(see here for more details).
License
This package is open-sourced software licensed under the MIT license.