Download the PHP
package esigner/sdk without Composer
On this page you can find all versions of the php package
esigner/sdk. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor esigner Package sdk Short Description Official PHP client for the esigner e-signing API: BankID, MitID and other eID signature requests, signed PDFs and verified webhooks. License
MIT Homepage https://esigner.no/dokumentasjon
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
- Only `ext-curl` and `ext-json` — drops into WordPress or any framework
- Safe retries: every POST carries an idempotency key that stays the same across retries
- Cursor pagination as generators, webhook verification in one call
## Install
PHP 8.1 or newer. Create an API key under **Konto → Utvikler** on your esigner site. Keys starting
with `sk_test_` sign against the test environment: the real flow, with test identities, no payment
and no legally binding signature.
## Send a document for signing
Files can be paths or bytes — `['data' => $pdfBytes, 'filename' => 'contract.pdf']` — and several are
merged in the order given. Or upload first and create separately:
Using another market? `new EsignerClient($key, ['market' => 'se'])` — see the table below.
## Follow it up
## Balance and events
## Webhooks (WordPress example)
esigner signs every delivery with `Esigner-Signature: t=,v1=`. Verify against the **raw**
body — a re-encoded JSON body will not match.
`Webhook::EVENT_TYPES` lists them all. Deliveries are retried; dedupe on `$event['id']`.
## Errors
Any non-2xx answer throws `Esigner\EsignerException` with the API's stable code:
Network errors, `429` and `5xx` are retried twice with backoff.
## Options
Every POST takes a last `$opts` argument: `['idempotency_key' => '…']` to make a retry from your side
return the original result too, and `['timeout' => 120]` for one slow call.
## Upgrading from 0.1
`Esigner\Client` and its flat methods (`uploadDocument`, `createSignatureRequest`, …) still work and
are deprecated; `EsignerClient` with its services is the way forward.
## esigner around the world
esigner runs one site per country, each signing with that country's own eID. An API key belongs to
the site it was created on — pick it with the `market` option.
| | Site | Signers identify with | API reference |
|---|---|---|---|
| 🇳🇴 Norway | [esigner.no](https://esigner.no) | BankID | [esigner.no/dokumentasjon](https://esigner.no/dokumentasjon) |
| 🇩🇰 Denmark | [esigner.dk](https://esigner.dk) | MitID | [esigner.dk/dokumentation](https://esigner.dk/dokumentation) |
| 🇸🇪 Sweden | [esigner.se](https://esigner.se) | BankID | [esigner.se/dokumentation](https://esigner.se/dokumentation) |
| 🇫🇮 Finland | [esigner.fi](https://esigner.fi) | Bank credentials (FTN) | [esigner.fi/dokumentaatio](https://esigner.fi/dokumentaatio) |
| 🇩🇪 Germany | [esigner.de](https://esigner.de) | Personalausweis | [esigner.de/dokumentation](https://esigner.de/dokumentation) |
📱 **On the go:** [esigner.me](https://esigner.me) — the esigner app for iPhone and Android. Scan or
upload a document, send it for signing and follow it until everyone has signed.
## License
MIT
Requiresphp Version
>=8.1 ext-curl Version
* ext-json Version
*
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package esigner/sdk contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.