https://github.com/massivefermion/phony
An international phone number validator
https://github.com/massivefermion/phony
erlang gleam google international javascript libphonenumber phone
Last synced: 6 months ago
JSON representation
An international phone number validator
- Host: GitHub
- URL: https://github.com/massivefermion/phony
- Owner: massivefermion
- License: apache-2.0
- Created: 2023-09-22T20:58:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T15:18:52.000Z (10 months ago)
- Last Synced: 2025-03-25T15:16:16.446Z (6 months ago)
- Topics: erlang, gleam, google, international, javascript, libphonenumber, phone
- Language: Gleam
- Homepage: https://hex.pm/packages/phony
- Size: 872 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - phony - [📚](https://hexdocs.pm/phony/) - An international phone number validator (Packages / Standards)
README

[](https://hex.pm/packages/phony)
[](https://hexdocs.pm/phony/)# phony
An international phone number validator
##
Quick start
```sh
gleam test # Run the tests
gleam shell # Run an Erlang shell
```##
Installation
This package can be added to your Gleam project:
```sh
gleam add phony
```and its documentation can be found at .
##
Usage
```gleam
import phonypub fn main() {
phony.validate("+1 4305573966")
phony.validate("+49 1522 343333")
phony.validate_by_country("09101752439", "IR")
phony.validate_by_code("27111234", "880")
}
```