PHPackages                             zfhassaan/zindagi-zconnect - 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. [API Development](/categories/api)
4. /
5. zfhassaan/zindagi-zconnect

ActiveLibrary[API Development](/categories/api)

zfhassaan/zindagi-zconnect
==========================

Laravel Package for Zindagi Z-Connect JS Bank Integration - Onboarding, Inquiry, Payment, and Lending Solutions

10PHPCI passing

Since Dec 16Pushed 4mo agoCompare

[ Source](https://github.com/zfhassaan/zindagi-zconnect)[ Packagist](https://packagist.org/packages/zfhassaan/zindagi-zconnect)[ RSS](/packages/zfhassaan-zindagi-zconnect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![Zindagi Z-Connect Logo](./zindigi.jpg)](./zindigi.jpg)

Zindagi Z-Connect Laravel SDK
=============================

[](#zindagi-z-connect-laravel-sdk)

 [ ![Latest Version](https://camo.githubusercontent.com/5819ec946376498b506b5b976f0729517668268c9a869648d84bd55a60e1de12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a666861737361616e2f7a696e646167692d7a636f6e6e6563742e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/zfhassaan/zindagi-zconnect) [ ![Tests](https://camo.githubusercontent.com/b28625a2f2188deffa813a1209c2dcbec81152fc322b599d629decf454b178e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a666861737361616e2f7a696e646167692d7a636f6e6e6563742f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d7465737473) ](https://github.com/zfhassaan/zindagi-zconnect/actions/workflows/tests.yml) [ ![Total Downloads](https://camo.githubusercontent.com/d3719ddcebf07c4a2647604395c3330c8815204df18b7a26cb3d965e05df6d69/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a666861737361616e2f7a696e646167692d7a636f6e6e6563742e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/zfhassaan/zindagi-zconnect) [ ![PHP Version](https://camo.githubusercontent.com/663c16d520db831e0c7db9f1a62ad083bbf2d4db563c7b9a740daa046d2d279d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7a666861737361616e2f7a696e646167692d7a636f6e6e6563742e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/zfhassaan/zindagi-zconnect) [ ![Laravel Version](https://camo.githubusercontent.com/e7dc7a84bcb4e82d3072a4a595dd0bf67f9c43c0286eb323364a697c4444e2c3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d3130253230253743253230313125323025374325323031322d4646324432303f7374796c653d666c61742d737175617265266c6f676f3d6c61726176656c) ](https://packagist.org/packages/zfhassaan/zindagi-zconnect) [ ![License](https://camo.githubusercontent.com/e12ebfe998a1fbda438a1b4f5d0f6c9d6b495805275de598372c2b804ee9f10d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a666861737361616e2f7a696e646167692d7a636f6e6e6563743f7374796c653d666c61742d737175617265) ](https://github.com/zfhassaan/zindagi-zconnect/blob/main/LICENSE) [ ![Code Style](https://camo.githubusercontent.com/3b3c737aea496c6e1d101e71596a571b3cb6f4e999ae19f620f7c7a1a211ba23/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d70696e742d6f72616e67653f7374796c653d666c61742d737175617265) ](https://github.com/zfhassaan/zindagi-zconnect)

 A clean, fully-typed Laravel package to integrate with **JS Bank’s Z-Connect API** -- the official fintech API platform for **Zindigi digital banking services**.

---

Disclaimer
----------

[](#disclaimer)

This is an **unofficial** Laravel package for integrating with **JS Bank’s Z-Connect (Zindigi) API**.

This repository is **not owned, maintained, or endorsed by JS Bank or Zindigi**. All trademarks, logos, APIs, and systems belong to their respective owners.

This package is provided **solely to assist developers** in streamlining the integration process with the official Z-Connect APIs.
For authoritative documentation, credentials, and production usage, refer to the official JS Bank developer portal:

---

Features
--------

[](#features)

- **Onboarding Solution** — Complete customer onboarding workflow with verification
- **Account Verification** — CNIC &amp; mobile-based account checks
- **Account Statement V2 / Digi Wallet Statement**
- **Audit Trail &amp; Logging**
- **DTO-driven request/response validation**
- **Modular &amp; extensible architecture**

> Inquiry, Payment, and Lending modules are planned.

---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10
- Guzzle HTTP Client

---

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

[](#installation)

```
composer require zfhassaan/zindagi-zconnect
```

---

Configuration
-------------

[](#configuration)

### Publish config

[](#publish-config)

```
php artisan vendor:publish --tag=zindagi-zconnect-config
```

### Environment variables

[](#environment-variables)

```
ZINDAGI_ZCONNECT_BASE_URL=https://api.jsbank.com/zconnect
ZINDAGI_ZCONNECT_CLIENT_ID=your_client_id
ZINDAGI_ZCONNECT_CLIENT_SECRET=your_client_secret
ZINDAGI_ZCONNECT_API_KEY=your_api_key
ZINDAGI_ZCONNECT_ORGANIZATION_ID=223
ZINDAGI_ZCONNECT_MERCHANT_TYPE=0088
ZINDAGI_ZCONNECT_COMPANY_NAME=NOVA
```

### (Optional) Migrations

[](#optional-migrations)

```
php artisan vendor:publish --tag=zindagi-zconnect-migrations
php artisan migrate
```

---

Usage
-----

[](#usage)

### Onboarding (Facade)

[](#onboarding-facade)

```
use zfhassaan\ZindagiZconnect\Facades\ZindagiZconnect;
use zfhassaan\ZindagiZconnect\Modules\Onboarding\DTOs\OnboardingRequestDTO;

$dto = OnboardingRequestDTO::fromArray([
    'cnic' => '1234567890123',
    'full_name' => 'John Doe',
    'mobile_number' => '03001234567',
    'email' => 'john@example.com',
    'date_of_birth' => '1990-01-01',
    'address' => '123 Main Street',
    'city' => 'Karachi',
    'country' => 'Pakistan',
]);

$response = ZindagiZconnect::onboarding()->initiate($dto);
```

---

Events
------

[](#events)

The package emits domain events:

- `OnboardingInitiated`
- `OnboardingVerified`
- `OnboardingCompleted`
- `AccountVerified`

```
Event::listen(AccountVerified::class, function ($event) {
    Log::info('Account verified', [
        'trace_no' => $event->verification->trace_no,
    ]);
});
```

---

Validation Helpers
------------------

[](#validation-helpers)

```
ValidationHelper::validateCnic('1234567890123');
ValidationHelper::validateMobileNumber('03001234567');
```

---

Audit Trail
-----------

[](#audit-trail)

```
$logs = ZindagiZconnect::audit()->getLogs(
    ['module' => 'onboarding'],
    limit: 50
);
```

---

Security
--------

[](#security)

- Encrypted API communication
- Sensitive data masking
- Request &amp; response validation
- Centralized credential handling
- Optional signature verification

---

Architecture
------------

[](#architecture)

```
src/
├── Modules/
│   ├── Onboarding/
│   ├── Inquiry/        (Planned)
│   ├── Payment/        (Planned)
│   └── Lending/        (Planned)
├── Services/
├── DTOs/
├── Events/
├── Helpers/
└── Exceptions/

```

---

Quality &amp; Testing
---------------------

[](#quality--testing)

This package maintains high code quality standards:

- ✅ **294 comprehensive unit tests** covering all modules and services
- ✅ **1154+ assertions** ensuring robust functionality
- ✅ **Continuous Integration** via GitHub Actions
- ✅ **Multi-version testing** across PHP 8.2, 8.3 and Laravel 10, 11, 12
- ✅ **Code style enforcement** using Laravel Pint
- ✅ **Type-safe DTOs** for all API requests and responses
- ✅ **100% test coverage** for critical business logic

### CI/CD Pipeline

[](#cicd-pipeline)

Every commit is automatically tested against:

- PHP 8.2, 8.3
- Laravel 10.x, 11.x, 12.x
- SQLite in-memory database
- Multiple dependency versions (prefer-lowest, prefer-stable)

---

Testing
-------

[](#testing)

Run the test suite locally:

```
composer test
# or
vendor/bin/phpunit
```

Run tests with coverage:

```
composer test-coverage
```

Format code with Laravel Pint:

```
composer format
```

---

License
-------

[](#license)

MIT

---

Support
-------

[](#support)

For bugs or feature requests, please open an issue on [GitHub](https://github.com/zfhassaan/zindagi-zconnect/issues).

---

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance50

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f91e22a64582fa1db957f7f189736d6cd2e6f1f69c2236a42a9ee8fcbdd0723?d=identicon)[zfhassaan](/maintainers/zfhassaan)

---

Top Contributors

[![zfhassaan](https://avatars.githubusercontent.com/u/17079656?v=4)](https://github.com/zfhassaan "zfhassaan (28 commits)")

---

Tags

fintechibftjsbanklaravelpackagezindagi

### Embed Badge

![Health badge](/badges/zfhassaan-zindagi-zconnect/health.svg)

```
[![Health](https://phpackages.com/badges/zfhassaan-zindagi-zconnect/health.svg)](https://phpackages.com/packages/zfhassaan-zindagi-zconnect)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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