File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ Anda bisa install package via composer:
28
28
``` bash
29
29
composer require diskominfotik-banda-aceh/e-sign-bsre-php
30
30
```
31
+ Jika Anda menggunakan PHP Native tambahkan baris berikut:
32
+ ``` php
33
+ require 'vendor/autoload.php';
34
+ ```
31
35
32
36
## Penggunaan
33
37
@@ -36,14 +40,21 @@ Kode yang disediakan ada beberapa yaitu tanda tangan digital invisible, verifika
36
40
37
41
- Tanda tangan digital invisible
38
42
``` php
39
- $esign = new ESignBSrE();
40
- $esign->signInvisible($nik , $passphrase, $file , $filename );
43
+ $esign = new ESignBSrE($baseUrl, $username, $password );
44
+ $response = $ esign->setFile($file , $filename)->sign($nik , $passphrase );
41
45
```
42
46
43
47
- Verifikasi tanda tangan digital
44
48
``` php
45
49
$esign = new ESignBSrE();
46
- $esign->signVerification($file, $fileName)
50
+ $response = $esign->setFile($file, $filename)->verification();
51
+ ```
52
+
53
+ ### Mengambil Response
54
+ ``` php
55
+ $status = $response->getStatus();
56
+ $body = $response->getBody();
57
+ $errors = $response->getErrors();
47
58
```
48
59
49
60
<!-- ### Testing
You can’t perform that action at this time.
0 commit comments