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.

16PHP

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 1mo ago

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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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