Metadata-Version: 2.2
Name: egyptian-phone-validator
Version: 0.1.1
Summary: A Django package to validate Egyptian phone numbers.
Home-page: https://github.com/Moataz0000/egyptian-phone-validator
Author: Moataz Fawzy
Author-email: motazfawzy73@gmail.com
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=3.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Egyptian Phone Validator

A Django package to validate Egyptian phone numbers.


## Features
- Validates Egyptian mobile phone numbers.

- Ensures the phone number is exactly 11 digits long.

- Checks for valid Egyptian mobile prefixes.

- Raises ValidationError for invalid phone numbers.

- Ensures the phone number is digits.


## Installation

Install the package using pip:

```bash
pip install egyptian-phone-validator
```


## Usage

```bash
from django.db import models
from egyptian_phone_validator.validators import validate_egyptian_phone_number

class UserProfile(models.Model):
    phone = models.CharField(
        max_length=11,
        validators=[validate_egyptian_phone_number],
        help_text="Enter a valid Egyptian phone number (e.g., 01012345678)."
    )
```
