PHPackages                             diskominfotik-banda-aceh/e-sign-bsre-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. diskominfotik-banda-aceh/e-sign-bsre-php

ActiveLibrary

diskominfotik-banda-aceh/e-sign-bsre-php
========================================

Package E-Sign BSrE untuk memudahkan penggunaan E-Sign BSrE (Balai Sertifikasi Elektronik) API dari BSSN (Badan Sandi dan Siber Negara)

v1.2.0(2y ago)1620512[1 issues](https://github.com/Diskominfotik-Banda-Aceh/E-Sign-BSrE-PHP/issues)MITPHPPHP ^7.4|^8.0

Since Nov 15Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Diskominfotik-Banda-Aceh/E-Sign-BSrE-PHP)[ Packagist](https://packagist.org/packages/diskominfotik-banda-aceh/e-sign-bsre-php)[ Docs](https://github.com/diskominfotik-banda-aceh/e-sign-bsre-php)[ RSS](/packages/diskominfotik-banda-aceh-e-sign-bsre-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Table of contents
=================

[](#table-of-contents)

- [Table of contents](#table-of-contents)
- [E-Sign BSrE](#e-sign-bsre)
    - [Instalisasi](#instalisasi)
    - [Penggunaan](#penggunaan)
        - [Kode](#kode)
    - [Changelog](#changelog)
    - [Contributing](#contributing)
    - [Keamanan](#keamanan)
    - [Credits](#credits)
    - [License](#license)

E-Sign BSrE
===========

[](#e-sign-bsre)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb9eb3b7378a125cf9bef5bfcf6878af8a86700f03f4961eaa41647771351a97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469736b6f6d696e666f74696b2d62616e64612d616365682f652d7369676e2d627372652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/diskominfotik-banda-aceh/e-sign-bsre-php)[![Total Downloads](https://camo.githubusercontent.com/ac409eeca4b5015d8729e43adcdcae9be51803f4661d687dcb85a0eae20795f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469736b6f6d696e666f74696b2d62616e64612d616365682f652d7369676e2d627372652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/diskominfotik-banda-aceh/e-sign-bsre-php)

[E-Sign BSrE](https://bsre.bssn.go.id/) adalah package untuk memudahkan penggunaan API E-Sign dari BSSN dengan bahasa PHP

Instalisasi
-----------

[](#instalisasi)

Anda bisa install package via composer:

```
composer require diskominfotik-banda-aceh/e-sign-bsre-php
```

Jika Anda menggunakan PHP Native tambahkan baris berikut:

```
require 'vendor/autoload.php';
```

Penggunaan
----------

[](#penggunaan)

### Kode

[](#kode)

Kode yang disediakan ada beberapa yaitu tanda tangan digital invisible, verifikasi tanda tangan digital dan tanda tangan visible (soon)

- Tanda tangan digital invisible

```
$esign = new DiskominfotikBandaAceh\ESignBsrePhp\ESignBSrE($baseUrl, $username, $password);
$response = $esign->setFile($file, $filename)->sign($nik, $passphrase);
$response->getStatus(); //Get status response (int) - 404, 200 etc
$response->getErrors(); //Get error response
$response->getData(); //Get data as blob pdf
```

- Verifikasi tanda tangan digital

```
$esign = new DiskominfotikBandaAceh\ESignBsrePhp\ESignBSrE($baseUrl, $username, $password);
$response = $esign->setFile($file, $filename)->verification();
$response->getStatus(); //Get status response (int)
$response->getErrors(); //Get error response
$response->getData(); //Get data as array (tergantung dari API BSrE)
```

Detail
------

[](#detail)

### Keterangan Variable

[](#keterangan-variable)

```
// $baseUrl adalah baseUrl dari sistem sign BSrE. Contoh : https://sign.domain.com/
// $username adalah username yang diberikan dari sistem sign BSrE
// $password adalah password yang diberikan dari sistem sign BSrE
// $file adalah content dari file pdf yang akan di sign (Contoh pengambilan file dapat dilihat dibawah)
// $filename adalah nama file pdf yang akan di sign

$esign = new DiskominfotikBandaAceh\ESignBsrePhp\ESignBSrE($baseUrl, $username, $password);
$response = $esign->setFile($file, $filename)->verification();
```

### Contoh kode mengambil file

[](#contoh-kode-mengambil-file)

Terdapat beberapa cara untuk mengambil file yang terdapat pada aplikasi

- Menggunakan Utils dari GuzzleHttp

```
$file = GuzzleHttp\Psr7\Utils::tryFopen('/path/to/file.pdf', 'r')
```

- Menggunakan `file_get_contents`

```
$file = file_get_contents('/path/to/file.pdf')
```

### Changelog

[](#changelog)

Lihat [CHANGELOG](CHANGELOG.md) untuk informasi lebih lanjut terkait perubahan terbaru.

Contributing
------------

[](#contributing)

[ ![](https://camo.githubusercontent.com/5b2ab865d0495a7ec80e894e37e7e63439406f5b8a5428e884b3cf6d13141c72/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d4469736b6f6d696e666f74696b2d42616e64612d416365682f452d5369676e2d425372452d504850)](https://github.com/Diskominfotik-Banda-Aceh/E-Sign-BSrE-PHP/graphs/contributors)Lihat [CONTRIBUTING](CONTRIBUTING.md) untuk lebih detailnya.

### Keamanan

[](#keamanan)

Jika anda menemukan masalah kerentanan keamanan pada package, tolong email ke diskominfotikbna\[at\]gmail.com

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~111 days

Total

4

Last Release

938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ab972d4654d2a63e842f36850149ef706b09f3c3c2a853ddf387d7772a13cfd?d=identicon)[diskominfotikbna](/maintainers/diskominfotikbna)

---

Top Contributors

[![maulidannashuha](https://avatars.githubusercontent.com/u/34979909?v=4)](https://github.com/maulidannashuha "maulidannashuha (15 commits)")[![RayhanYulanda](https://avatars.githubusercontent.com/u/15263594?v=4)](https://github.com/RayhanYulanda "RayhanYulanda (11 commits)")[![nurratna](https://avatars.githubusercontent.com/u/23415616?v=4)](https://github.com/nurratna "nurratna (2 commits)")

---

Tags

acehbsrebssne-signe-signaturee-signature-applicationgovernancegovernmentgovernment-techkominfokominfo-acehphpsignsignaturesignaturesdiskominfotik-banda-acehe-sign-bsre-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diskominfotik-banda-aceh-e-sign-bsre-php/health.svg)

```
[![Health](https://phpackages.com/badges/diskominfotik-banda-aceh-e-sign-bsre-php/health.svg)](https://phpackages.com/packages/diskominfotik-banda-aceh-e-sign-bsre-php)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
