2017 © Pedro Peláez
 

library php-telephone

This package aims at providing an easy to use telephone data-type class

image

zenapply/php-telephone

This package aims at providing an easy to use telephone data-type class

  • Monday, May 16, 2016
  • by tylercd100
  • Repository
  • 1 Watchers
  • 2 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-telephone

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads, (*1)

This package aims at providing an easy to use telephone data-type class., (*2)

Installation

Install via composer - In the terminal:, (*3)

composer require zenapply/php-telephone

Usage

use Zenapply\DataTypes\Telephone;

$phone = new Telephone('+1 (230) 555-3333', 'US'); // The second parameter (region) is optional and defaults to 'US'.

echo $phone . PHP_EOL;                      // +12305553333
echo $phone->getE164() . PHP_EOL;           // +12305553333
echo $phone->getRFC3966() . PHP_EOL;        // tel:+1-230-555-3333
echo $phone->getNational() . PHP_EOL;       // (230) 555-3333
echo $phone->getInternational() . PHP_EOL;  // +1 230-555-3333
echo $phone->getOriginal() . PHP_EOL;       // +1 (230) 555-3333
echo $phone->getAreaCode() . PHP_EOL;       // 230
echo $phone->getCountryCode() . PHP_EOL;    // 1
echo $phone->getSubscriberCode() . PHP_EOL; // 5553333
echo $phone->isValid() . PHP_EOL;           // true

Contributing

Contributions are always welcome!, (*4)

The Versions

16/05 2016

dev-master

9999999-dev https://github.com/zenapply/php-telephone

This package aims at providing an easy to use telephone data-type class

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

telephone tylercd100 zenapply

16/05 2016

1.0.1

1.0.1.0 https://github.com/zenapply/php-telephone

This package aims at providing an easy to use telephone data-type class

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

telephone tylercd100 zenapply

15/05 2016

1.0.0

1.0.0.0 https://github.com/zenapply/php-telephone

A Telephone data type

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

telephone tylercd100 zenapply