Skip to content

Phone number type with validation and formatting for Ecto

License

Notifications You must be signed in to change notification settings

finder-co/ecto-phone-number

 
 

Repository files navigation

Ecto Phone Number

license build status Hex version

Phone number type with validation and formatting for Ecto

Features:

  • Express phone numbers in the code with explicit structure
  • Validate and format phone numbers using Google's globally acclaimed libphonenumber
  • Use the most up-to-date phone definition available for Elixir

Getting Started

Add ecto_phone_number as a dependency to your project in mix.exs:

defp deps do
  [{:ecto_phone_number, "~> x.x.x"}]
end

Then run mix deps.get to fetch it.

Documentation

Visit documentation on HexDocs for a complete API reference.

About

Phone number type with validation and formatting for Ecto

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%