An Elixir library for parsing telephone numbers in international standard or missing country codes.
Phone is an Elixir library for parsing telephone numbers in international standard format or those missing country codes. It extracts structured information like country codes, area codes, and geographic metadata directly from the number, solving the problem of validating and understanding phone numbers across different regions.
Elixir developers building applications that handle international phone numbers, such as telecommunication systems, user authentication, or contact management tools.
Developers choose Phone for its high-performance parsing, ability to work with incomplete numbers, and detailed area code information without relying on external services like libphonenumber.
Elixir phone number parser for numbers in international standard.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Rebuilt for speed, offering up to 100x faster parsing compared to earlier versions, as noted in the README's version update.
Parses numbers in international format or those missing country codes, extracting detailed information like country and area codes without prior knowledge.
Returns maps with comprehensive fields such as country codes (a2/a3), international codes, area codes, and geographic metadata for supported countries.
Designed as a pure parser that extracts information solely from the number, avoiding reliance on external services or APIs.
Area code details are only available for four countries (US, Canada, Brazil, Spain), which may not meet needs for global applications.
The library focuses only on parsing and does not support formatting phone numbers, as explicitly stated in the README under what it isn't.
Version 0.4.0 onward increased compilation time to achieve performance gains, which could slow down development or deployment cycles.