PHPackages                             blackit/privyid - 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. blackit/privyid

ActiveLibrary

blackit/privyid
===============

Privy ID Integration for Laravel

v1.2.0(6y ago)282PHP

Since Oct 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/subangkit/privyid)[ Packagist](https://packagist.org/packages/blackit/privyid)[ RSS](/packages/blackit-privyid/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Laravel Privy ID Integration
============================

[](#laravel-privy-id-integration)

Package to integrate PrivyID with Laravel Application

Installation
------------

[](#installation)

To install you using composer

```
composer require blackit/privyid
```

Setup
-----

[](#setup)

### Publish migration and config

[](#publish-migration-and-config)

publish the application using

```
php artisan vendor:publish --provider="BlackIT\PrivyID\PrivyIDServiceProvider"
php artisan migrate
```

### Set Enviroment Variable

[](#set-enviroment-variable)

setting your enviroment variable

```
PRIVYID_PRODUCTION=false
PRIVYID_USER=username
PRIVYID_PASSWORD=password
PRIVYID_MERCHANT_KEY=merchankey
PRIVYID_SANDBOX_USER=usernamesandbox
PRIVYID_SANDBOX_PASSWORD=passwordsandbox
PRIVYID_SANDBOX_MERCHANT_KEY=merchantsandbox
PRIVYID_SANDBOX_OWNER=ownercode
PRIVYID_SANDBOX_OWNER_ENTERPRISE_TOKEN=enterprisetoken
PRIVYID_CLIENT_ID=clientid
PRIVYID_SECRET_KEY=secretkey
PRIVYID_OWNER=ownercode
PRIVYID_OWNER_ENTERPRISE_TOKEN=enterprisetoken
```

Clear config cachee

```
php artisan config:clear
```

### Set config/app.php

[](#set-configappphp)

```
return [

    ...

    'providers' => [

        ...
        \BlackIT\PrivyID\PrivyIDServiceProvider::class

    ],

    ...

    'aliases' => [

        ...
        'File' => Illuminate\Support\Facades\File::class,
        'PrivyID' => \BlackIT\PrivyID\PrivyIDFacade::class,

    ],

];
```

Usage
-----

[](#usage)

### Using PrivyIDAble in your Model for example User

[](#using-privyidable-in-your-model-for-example-user)

```
namespace App;

use BlackIT\PrivyID\PrivyIDAble;

class User
{
    use PrivyIDAble;

    ...
}
```

### Add Button to Bind

[](#add-button-to-bind)

```
Bind Digital Signature
```

### Set you callback

[](#set-you-callback)

```
namespace App\Http\Controllers;

use App\User;
use BlackIT\PrivyID\PrivyID;
use Illuminate\Http\Request;

class DigitalSignatureController extends Controller
{
    public function privyid(Request $request) {
        $code = $request->input('code');
        if ($code != '') {
            /**
             * @var $user User
             */
            $user = \Auth::user();

            try {
                $user->bind($code);
            } catch (\Exception $e) {
                \Toast::error('Gagal integrasi dengan Privy ID silahkan klik tombol bind kembali');
            }
        }
    }
}
```

### Get Identity and Update Identity

[](#get-identity-and-update-identity)

```
    public function getIdentity(Request $request)
    {

        $user = Auth::user();
        $user->updateIdentity();
        $identity = $user->privyid();
        ...

    }
```

### Upload Document

[](#upload-document)

```
    public function uploadDocument(Request $request)
    {

        $user = Auth::user();
        ...
        $recipientBuilder = new PrivyIDRecipientBuilder();
        $recipientBuilder->addRecipient('PRIVYID', 'Signer');

        $checkUploadPrivy = $user->uploadDocument('CODE Document', 'Title Document', 'Parallel/Serial', 'File Location', $recipientBuilder->output());

    }
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~11 days

Recently: every ~24 days

Total

11

Last Release

2293d ago

Major Versions

v0.2.1 → v1.0.02019-10-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/c04dc2111a7d069928342315a200716d0c18b841453858e250d399bbab90deab?d=identicon)[subangkit](/maintainers/subangkit)

---

Top Contributors

[![subangkit](https://avatars.githubusercontent.com/u/541059?v=4)](https://github.com/subangkit "subangkit (16 commits)")

### Embed Badge

![Health badge](/badges/blackit-privyid/health.svg)

```
[![Health](https://phpackages.com/badges/blackit-privyid/health.svg)](https://phpackages.com/packages/blackit-privyid)
```

###  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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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