GithubHelp home page GithubHelp logo

cliveholloway / perl-modules-number-phone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drhyde/perl-modules-number-phone

0.0 2.0 0.0 31.35 MB

Number::Phone and friends

Perl 95.14% Shell 1.04% Perl 6 3.82%

perl-modules-number-phone's Introduction

This distribution contains several modules.

To install them modules, do the usual dance:

    perl Makefile.PL
    make
    make test
    make install

Number::Phone is a base class for parsing and dealing with phone numbers.

Number::Phone::UK inherits methods from it, over-riding some with UK-
specific implementations.  The intention is that other people will write
other country-specific classes exposing the same API.

Number::Phone::Country is a useful module which is used by the NANP modules.
It was originally written by T. J. Mather but is now maintained by me.

Number::Phone::StubCountry::* are automatically generated from Google's
libphonenumber project's data.  They do not support all the features of
Number::Phone, but will support many use-cases and should "fail
gracefully" if you try to use unsupported features.

Number::Phone::NANP implements functionality common to all NANP countries.
There is a subclass of this for each such country.  The only significant
difference between this and libphonenumber is that libphonenumber
erroneously reports that 800 numbers and other non-geographic numbers are
in the US.

Please note that the build-data.* files are not intended for your use.
I use them to re-build the database of UK number allocations.  If you
choose to use them, on your own head be it!

The data used in these modules have come from all sorts of places.  Most
of them disclaim any responsibility for errors in the data.  I disclaim
all responsibility for errors too, even if my code makes your PBX turn
purple.

Data sources used include:
  http://wtng.info/ - treat this with caution, it seems to be no
    longer maintained
  various telcos and regulatory bodies linked from the above:
  http://www.itu.int/itu-t/inr/nnp/
  http://www.ofcom.org.uk/ - for UK data
  http://www.areacode-info.com/ - for US data
  http://www.cnac.ca/ - for Canadian data
  Google's libphonenumber:
  http://code.google.com/p/libphonenumber/
    whose data are used for NANP area code names and for "stub"
    modules.

You can find the most recent version of the source code on Github at:
  https://github.com/DrHyde/perl-modules-Number-Phone

There is an online demo of some of its functionality here: 
  http://www.cantrell.org.uk/david/phoneinfo/

And you can browse the online documentation here:
  http://search.cpan.org/~dcantrell/Number-Phone/

The most important bits of doco to read are Number::Phone,
Number::Phone::Country, Number::Phone::UK, and
Number::Phone::NANP.  Most other stuff is either a subclass of one
of those that provides country-specific data, or is a "helper"
module that supplies data in a non-user-oriented format, intended
only for internal use.

perl-modules-number-phone's People

Contributors

drhyde avatar aleksandrpanteleymonov avatar theory avatar gpoul avatar dolmen avatar varadinsky avatar g1smd avatar xsawyerx avatar gregoa avatar

Watchers

James Cloos avatar Clive Holloway avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.