PHPackages                             cherif/php-algerian-mobile-phone-number-doctrine - 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. cherif/php-algerian-mobile-phone-number-doctrine

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

cherif/php-algerian-mobile-phone-number-doctrine
================================================

Use cherif/algerian-mobile-phone-number with doctrine

0.1.1(5y ago)97MITPHPPHP &gt;=7.2.0

Since Sep 16Pushed 5y ago2 watchersCompare

[ Source](https://github.com/cherifGsoul/php-algerian-mobile-phone-number-doctrine)[ Packagist](https://packagist.org/packages/cherif/php-algerian-mobile-phone-number-doctrine)[ RSS](/packages/cherif-php-algerian-mobile-phone-number-doctrine/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

cherif/php-algerian-mobile-phone-number-doctrine
================================================

[](#cherifphp-algerian-mobile-phone-number-doctrine)

The cherif/php-algerian-mobile-phone-number-doctrine package allows to use [cherif/algerian-mobile-phone-number](https://github.com/cherifGsoul/php-algerian-mobile-phone-number) as a [Doctrine field type](https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/cookbook/custom-mapping-types.html).

Installtion
-----------

[](#installtion)

The recommended way of installation is by using [Packagist](https://packagist.org/packages/cherif/php-algerian-mobile-phone-number-doctrine) and [Composer](http://getcomposer.org/).

The following command should be executed in order to add the package as a requirement to `composer.json` of a project:

```
$ composer require cherif/php-algerian-mobile-phone-number-doctrine
```

Examples:
---------

[](#examples)

To configure Doctrine to use cherif/php-algerian-mobile-phone-number-doctrine as a field type, you'll need to set up the following in your bootstrap:

```
\Doctrine\DBAL\Types\Type::addType('algerian_mobile_phone_number', 'Cherif\AlgerianMobilePhoneNumber\Doctrine\AlgerianMobilePhoneNumberType');
```

In Symfony:

```
# config/packages/doctrine.yaml
doctrine:
  dbal:
    types:
      algerian_mobile_phone_number: Cherif\AlgerianMobilePhoneNumber\Doctrine\AlgerianMobilePhoneNumberType
```

Usage:
------

[](#usage)

Then, in your entities, you may annotate properties by setting the @Column type to `algerian_mobile_phone_number`:

```
use Doctrine\ORM\Mapping as ORM;
use Cherif\AlgerianMobilePhoneNumber\AlgerianMobilePhoneNumber;

/**
 * @ORM\Entity
 * @ORM\Table(name="person")
 */
class Person
{
    /**
     * @var Cherif\AlgerianMobilePhoneNumber\AlgerianMobilePhoneNumber
     *
     * @ORM\Id
     * @ORM\Column(type="algerian_mobile_phone_number", unique=true)
     */
    protected $mobilePhoneNumber;

    public function getMobilePhoneNumber(): AlgerianMobilePhoneNumber
    {
        return $this->mobilePhoneNumber;
    }
}
```

To use XML Mapping instead of PHP annotations.

```
...

...
```

Contribution
------------

[](#contribution)

Contributions are welcome to make this library better.

- Clone the repo:

```
$ git clone git@github.com:cherifGsoul/php-algerian-mobile-phone-number-doctrine.git
```

and enter to the cloned repository directory.

- Install dependencies:

```
$ composer install
```

### Testing:

[](#testing)

Run composer script for testing:

```
$ ./bin/phpunit
```

License
-------

[](#license)

[MIT License](LICENSE).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

2

Last Release

2163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4be70b1b1d59ebec6b57be354923c82f8c9d445e612398e73a838c48130183b?d=identicon)[cherif\_b](/maintainers/cherif_b)

---

Top Contributors

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

---

Tags

algeriaalgeria-phone-numberdoctrine-ormhacktoberfesthacktoberfest2022laminas-mvclaravel-doctrinephpsymfonytypes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cherif-php-algerian-mobile-phone-number-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/cherif-php-algerian-mobile-phone-number-doctrine/health.svg)](https://phpackages.com/packages/cherif-php-algerian-mobile-phone-number-doctrine)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

64147.9k151](/packages/oat-sa-tao-core)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.6M84](/packages/typo3-cms-redirects)[rias/statamic-redirect

29347.4k](/packages/rias-statamic-redirect)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2087.0k31](/packages/ronasit-laravel-helpers)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

15100.9k](/packages/eliashaeussler-typo3-form-consent)

PHPackages © 2026

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