PHPackages                             andersonteala/validate-phone - 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. andersonteala/validate-phone

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

andersonteala/validate-phone
============================

Validate a phone number

v1.0.0(4y ago)16MITPHPPHP &gt;=7.0

Since Feb 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AndersonTeala/validate-phone)[ Packagist](https://packagist.org/packages/andersonteala/validate-phone)[ RSS](/packages/andersonteala-validate-phone/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Validate Phone Number
=====================

[](#validate-phone-number)

A simple phone validator, returning if the phone is mobile, landline or invalid. Valid only for Brazilian phones (first version).

Requirements
------------

[](#requirements)

- PHP
    - 7.0
    - or higher required

Installing
----------

[](#installing)

To install this dependency just run the command below:

```
composer require andersonteala/validate-phone
```

Example Usage
-------------

[](#example-usage)

For your use, follow the example below:

```
