Download the PHP package rupeshdahal/nepal-mobile-operators without Composer
On this page you can find all versions of the php package rupeshdahal/nepal-mobile-operators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rupeshdahal/nepal-mobile-operators
More information about rupeshdahal/nepal-mobile-operators
Files in rupeshdahal/nepal-mobile-operators
Package nepal-mobile-operators
Short Description A Laravel package to identify mobile operators in Nepal based on number prefixes
License MIT
Informations about the package nepal-mobile-operators
Nepal Mobile Operators
A Laravel package to identify mobile operators in Nepal based on number prefixes.
Installation
You can install the package via composer:
The package will automatically register its service provider.
You can publish the configuration file with:
Usage
Basic Usage
Direct Class Usage
If you prefer not to use the facade, you can also use the class directly:
Available Operators
The package currently supports the following operators:
| Operator | Prefixes | Technology |
|---|---|---|
| Ntc (Namaste SIM) | 984, 985, 986, 976 | GSM |
| Ntc (Earlier CDMA, now with GSM) | 974, 975 | CDMA/GSM |
| Ncell | 980, 981, 982, 970 | GSM |
| Smart Cell | 961, 962, 988 | GSM |
| UTL | 972 | CDMA |
| Hello Mobile | 963 | GSM |
Number Format Handling
The package handles various phone number formats:
- Standard 10-digit numbers:
9841234567 - Numbers with country code:
+9779841234567or9779841234567 - Numbers with leading zero:
09841234567 - Formatted numbers:
984-123-4567or984 123 4567
Custom Configuration
After publishing the config file, you can add custom operators or modify validation settings:
Testing
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.