File: README

package info (click to toggle)
libnumber-phone-perl 3.6006-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 136,072 kB
  • sloc: perl: 2,719; makefile: 2
file content (64 lines) | stat: -rw-r--r-- 2,540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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.

Please note that the build-data.* files are not intended for normal users to use. They are used by developers to re-build some of the internal databases inside the distribution. They have lots of extra dependencies that aren't needed once you've built the distribution.

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:
  WTNG:
    http://wtng.info/ - treat this with caution, it seems to be no
      longer maintained

  various telcos and regulatory bodies:
    http://www.itu.int/itu-t/inr/nnp/
    http://www.ofcom.org.uk/ - for UK data
    http://www.cnac.ca/ - for Canadian data
    https://www.nationalpooling.com - for US data

  Local Calling Guide
    https://localcallingguide.com/

  Google's libphonenumber:
    http://code.google.com/p/libphonenumber/

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.