PHPackages                             naztech/bdmobile - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. naztech/bdmobile

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

naztech/bdmobile
================

Laravel package for mobile number validators &amp; change the mobile number format for Bangladeshi mobile operators.

06PHP

Since Feb 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hassantvs24/bdmobile)[ Packagist](https://packagist.org/packages/naztech/bdmobile)[ RSS](/packages/naztech-bdmobile/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

#### BD Mobile

[](#bd-mobile)

This is a Laravel package for mobile number validators &amp; change the mobile number format for Bangladeshi mobile operators.

### Installation

[](#installation)

Install the package through [Composer](http://getcomposer.org). On the command line:

```
composer require naztech/bdmobile

```

### Configuration

[](#configuration)

If Laravel &gt; 7, no need to add provider

Add the following to your providers array in `config/app.php`:

```
'providers' => [
    // ...

    Naztech\BdMobile\BdMobileServiceProvider::class,
],

```

#### Example Use

[](#example-use)

```
use Naztech\BdMobile\BdMobile;

```

**Validate Mobile Number**

```
    $mobile = new BdMobile(); //Initilization
    $mobile->valid('01675870047'); //Output: true
    $mobile->valid('+8801675870047'); //Output: true
    $mobile->valid('008801675870047'); //Output: true
    $mobile->valid('1675870047'); //Output: trhow error exception

```

**Change Mobile Number Format**

```
    $mobileNumber = '01675870047';

    $mobile = new BdMobile(); //Initilization
    $mobile->simple($mobileNumber); //Output: 1675870047
    $mobile->normal($mobileNumber); //Output: 01675870047
    $mobile->extend($mobileNumber); //Output: 8801675870047
    $mobile->full($mobileNumber); //Output: +8801675870047
    $mobile->fullex($mobileNumber); //Output: 008801675870047

```

License
-------

[](#license)

BD Mobile number validator &amp; formatter is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/019921addeac0c3612bc49d62ded2f07bb1468c4728e160485b373f745bc528a?d=identicon)[naztech01](/maintainers/naztech01)

---

Top Contributors

[![hassantvs24](https://avatars.githubusercontent.com/u/49582324?v=4)](https://github.com/hassantvs24 "hassantvs24 (11 commits)")

---

Tags

bd-mobile-numberlaravellaravel-packagemobile-numbermobile-number-formatmobile-number-verification

### Embed Badge

![Health badge](/badges/naztech-bdmobile/health.svg)

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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