PHPackages                             rupeshdahal/nepal-mobile-operators - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rupeshdahal/nepal-mobile-operators

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rupeshdahal/nepal-mobile-operators
==================================

A Laravel package to identify mobile operators in Nepal based on number prefixes

v1.0.2(12mo ago)55MITPHPPHP ^7.4|^8.0

Since May 15Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/rupeshdahal/nepal-mobile-operators)[ Packagist](https://packagist.org/packages/rupeshdahal/nepal-mobile-operators)[ RSS](/packages/rupeshdahal-nepal-mobile-operators/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Nepal Mobile Operators
======================

[](#nepal-mobile-operators)

A Laravel package to identify mobile operators in Nepal based on number prefixes.

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

[](#installation)

You can install the package via composer:

```
composer require rupeshdahal/nepal-mobile-operators
```

The package will automatically register its service provider.

You can publish the configuration file with:

```
php artisan vendor:publish --provider="RupeshDai\NepalMobileOperators\NepalMobileOperatorsServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use RupeshDai\nepalimobileoperator\src\Facades\NepalMobileOperators;

// Get the operator name
$operator = NepalMobileOperators::getOperator('9841234567');
// Returns: "Ntc (Namaste SIM)"

// Check if a number is valid
$isValid = NepalMobileOperators::isValid('9841234567');
// Returns: true

// Get detailed information
$details = NepalMobileOperators::getOperatorDetails('9841234567');
// Returns: [
//    'operator' => 'Ntc (Namaste SIM)',
//    'prefixes' => ['984', '985', '986', '976'],
//    'technology' => 'GSM'
// ]
```

### Direct Class Usage

[](#direct-class-usage)

If you prefer not to use the facade, you can also use the class directly:

```
use Neputer\NepalOperatorIdentifier\NepalMobileOperators;

$detector = new NepalMobileOperators();
$operator = $detector->getOperator('9841234567');
```

### Available Operators

[](#available-operators)

The package currently supports the following operators:

OperatorPrefixesTechnologyNtc (Namaste SIM)984, 985, 986, 976GSMNtc (Earlier CDMA, now with GSM)974, 975CDMA/GSMNcell980, 981, 982, 970GSMSmart Cell961, 962, 988GSMUTL972CDMAHello Mobile963GSM### Number Format Handling

[](#number-format-handling)

The package handles various phone number formats:

- Standard 10-digit numbers: `9841234567`
- Numbers with country code: `+9779841234567` or `9779841234567`
- Numbers with leading zero: `09841234567`
- Formatted numbers: `984-123-4567` or `984 123 4567`

### Custom Configuration

[](#custom-configuration)

After publishing the config file, you can add custom operators or modify validation settings:

```
// config/nepalmobileoperators.php

return [
    'custom_operators' => [
        'New Operator' => [
            'prefixes' => ['990'],
            'technology' => 'GSM'
        ],
    ],

    'validation' => [
        'strict_length' => true,
    ],
];
```

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/993488bd5e4a984561eb9e9e9f75a7c2d807611ba23f6074f3b73146d3d31e66?d=identicon)[rupeshdahal](/maintainers/rupeshdahal)

---

Top Contributors

[![rupeshdahal](https://avatars.githubusercontent.com/u/46472234?v=4)](https://github.com/rupeshdahal "rupeshdahal (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rupeshdahal-nepal-mobile-operators/health.svg)

```
[![Health](https://phpackages.com/badges/rupeshdahal-nepal-mobile-operators/health.svg)](https://phpackages.com/packages/rupeshdahal-nepal-mobile-operators)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M861](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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