Skip to content

Commit 65b68b6

Browse files
2 parents 4f5455c + bca1d1f commit 65b68b6

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Anda bisa install package via composer:
2828
```bash
2929
composer require diskominfotik-banda-aceh/e-sign-bsre-php
3030
```
31+
Jika Anda menggunakan PHP Native tambahkan baris berikut:
32+
```php
33+
require 'vendor/autoload.php';
34+
```
3135

3236
## Penggunaan
3337

@@ -36,14 +40,21 @@ Kode yang disediakan ada beberapa yaitu tanda tangan digital invisible, verifika
3640

3741
- Tanda tangan digital invisible
3842
```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);
4145
```
4246

4347
- Verifikasi tanda tangan digital
4448
```php
4549
$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();
4758
```
4859

4960
<!--### Testing

0 commit comments

Comments
 (0)