{"id":13508662,"url":"https://github.com/fcevado/phone","last_synced_at":"2025-04-14T05:17:16.359Z","repository":{"id":6189767,"uuid":"54800421","full_name":"fcevado/phone","owner":"fcevado","description":"Elixir phone number parser for numbers in international standard.","archived":false,"fork":false,"pushed_at":"2024-12-29T13:36:04.000Z","size":618,"stargazers_count":106,"open_issues_count":5,"forks_count":37,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-14T05:16:51.798Z","etag":null,"topics":["countries","elixir","international","phone","phone-number-parser","telephone","telephone-number","telephone-number-parser"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcevado.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-26T21:28:39.000Z","updated_at":"2025-01-29T21:54:29.000Z","dependencies_parsed_at":"2023-09-22T06:21:28.144Z","dependency_job_id":"25b23eb8-1a9a-485f-a214-268ecd1bfbb9","html_url":"https://github.com/fcevado/phone","commit_stats":{"total_commits":402,"total_committers":27,"mean_commits":14.88888888888889,"dds":"0.23134328358208955","last_synced_commit":"1eef56d398dab4683b4d4c71b0df844248d74fd7"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcevado%2Fphone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcevado%2Fphone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcevado%2Fphone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcevado%2Fphone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcevado","download_url":"https://codeload.github.com/fcevado/phone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824695,"owners_count":21167345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","elixir","international","phone","phone-number-parser","telephone","telephone-number","telephone-number-parser"],"created_at":"2024-08-01T02:00:56.465Z","updated_at":"2025-04-14T05:17:16.310Z","avatar_url":"https://github.com/fcevado.png","language":"Elixir","funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"readme":"# Phone\n\n[![Build Status](https://travis-ci.org/fcevado/phone.svg?branch=master)](https://travis-ci.org/fcevado/phone)\n[![Coverage Status](https://coveralls.io/repos/github/fcevado/phone/badge.svg?branch=master)](https://coveralls.io/github/fcevado/phone?branch=master)\n[![Module Version](https://img.shields.io/hexpm/v/phone.svg)](https://hex.pm/packages/phone)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/phone/)\n[![Total Download](https://img.shields.io/hexpm/dt/phone.svg)](https://hex.pm/packages/phone)\n[![License](https://img.shields.io/hexpm/l/phone.svg)](https://github.com/fcevado/phone/blob/master/LICENSE)\n[![Last Updated](https://img.shields.io/github/last-commit/fcevado/phone.svg)](https://github.com/fcevado/phone/commits/master)\n\nPhone number parser for telephone numbers in international standard or missing international country code, for [Elixir](http://elixir-lang.org).\n\nNote on version `0.4.0` onward: `Phone` was rebuild to increase performance, that may increase compilation time but made `Phone` 100 times faster.\n\n* [Online Documentation](https://hexdocs.pm/phone/readme.html)\n* [Hex](https://hex.pm/packages/phone)\n\n## About\n\nWhat is, what isn't and what will be about Phone:\n  1. It isn't:\n     * Intended to work as libphonenumber.\n     * Prepared to format numbers.\n     * Necessary any information about the number if in international standard.\n  2. It is:\n     * A real parser, created to extract information based only in the number.\n     * Prepared to work with numbers not only in the international standard.\n  3. It will have:\n     * Area code info for every country that numbering plan has area codes.\n\n  * Patterns:\n    * Countries without area code info:\n        ```elixir\n        %{\n          country: \"Country Name\",\n          a2: \"Alpha-2\",\n          a3: \"Alpha-3\",\n          international_code: \"1\",\n          area_code: \"yyy\",\n          number: \"xxxxxxx\"\n        }\n        ```\n\n    * Countries with area code info:\n        ```elixir\n        %{\n          country: \"Country Name\",\n          a2: \"Alpha-2 code\",\n          a3: \"Alpha-3 code\",\n          international_code: \"1\",\n          number: \"xxxxxxx\",\n          area_code: \"yyy\",\n          area_name: \"Area Name\",\n          area_type: \"state\",\n          area_abbreviation: \"AN\"\n        }\n        ```\n\n## Area Codes\n\n  Countries that already has area code info:\n  * United States.\n  * Canada.\n  * Brazil.\n  * Spain.\n\n## Vocabulary\n\n  * a2: Alpha-2, two letters code for country names.\n  * a3: Alpha-3, three letters code for country names.\n  * NANP: North American Numbering Plan, numbering plan for countries with international code number 1.\n  * Numbering Plan: The rules and specifications of how telephone numbers works in a given country.\n\n## Installation\n\nAdd to your dependencies like any other hex package:\n\n```elixir\ndefp deps do\n  [\n    {:phone, \"0.5.0\"}\n  ]\nend\n```\n\n## License\n\nCopyright (c) 2016 Flávio Moreira Vieira\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcevado%2Fphone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcevado%2Fphone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcevado%2Fphone/lists"}