PHPackages                             imransaleem/telenor-integration - 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. imransaleem/telenor-integration

ActiveLibrary

imransaleem/telenor-integration
===============================

A Laravel package for integrating with Telenor APIs.

v1.0.0(9mo ago)01MITPHPPHP &gt;=7.4

Since Aug 2Pushed 9mo agoCompare

[ Source](https://github.com/imransaleem25/telenor-integration)[ Packagist](https://packagist.org/packages/imransaleem/telenor-integration)[ RSS](/packages/imransaleem-telenor-integration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Telenor Integration for Laravel
===============================

[](#telenor-integration-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85386e572522c853d3e9bafe499defde9c07e37cd137d7eacdf07e86a703e15f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d72616e73616c65656d2f74656c656e6f722d696e746567726174696f6e2e737667)](https://packagist.org/packages/imransaleem/telenor-integration)[![License](https://camo.githubusercontent.com/266efcf02be34e1a73b01b024d299512aa6f48058d5a684a2804976e773884ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696d72616e73616c65656d2f74656c656e6f722d696e746567726174696f6e2e737667)](LICENSE)

A Laravel package for integrating with Telenor APIs, supporting login, inquiry, and fund transfer via CNIC.

Features
--------

[](#features)

- Corporate login using encrypted payload
- Balance inquiry by CNIC
- Fund transfer to CNIC/MSISDN
- Automatic request logging to database

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

[](#installation)

```
composer require imransaleem/telenor-integration
```

If you're not using Laravel package auto-discovery, add the service provider and alias manually:

**config/app.php**

```
'providers' => [
    ImranSaleem\TelenorIntegration\TelenorIntegrationServiceProvider::class,
],

'aliases' => [
    'Telenor' => ImranSaleem\TelenorIntegration\Facades\Telenor::class,
],
```

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

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=telenor-config
```

Then update your `.env`:

```
TELENOR_BASE_URL=https://api.telenor.com.pk
TELENOR_MSISDN=92300xxxxxxx
TELENOR_CLIENT_ID=your-client-id
TELENOR_CLIENT_SECRET=your-client-secret
TELENOR_LOGIN_CREDENTIALS=92300xxxxxxx:password
```

Keys
----

[](#keys)

Place your RSA keys in the following paths:

```
storage/app/keys/private.pem
storage/app/keys/subgateway.pem

```

Migrations
----------

[](#migrations)

Run the migration to create the API log table:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Login

[](#login)

```
$login = Telenor::login();
```

### Inquiry

[](#inquiry)

```
if ($login['ResponseCode'] === '0') {
    $inquiry = Telenor::inquiry(
        $login['Timestamp'],
        $beneficiary, // object with contact_number and cnic
        $amount  // amount to disburse
    );
}
```

### Transfer

[](#transfer)

```
if ($inquiry['ResponseCode'] === '0') {
    $transfer = Telenor::transfer(
        $login['Timestamp'],
        $beneficiary,
        $amount
    );
}
```

Logging
-------

[](#logging)

All API requests are logged in the `telenor_api_logs` table automatically.

License
-------

[](#license)

MIT © [Imran Saleem](https://github.com/imransaleem)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance61

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

280d ago

### Community

Maintainers

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

---

Top Contributors

[![imransaleem25](https://avatars.githubusercontent.com/u/221933665?v=4)](https://github.com/imransaleem25 "imransaleem25 (1 commits)")

### Embed Badge

![Health badge](/badges/imransaleem-telenor-integration/health.svg)

```
[![Health](https://phpackages.com/badges/imransaleem-telenor-integration/health.svg)](https://phpackages.com/packages/imransaleem-telenor-integration)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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