{"id":18132691,"url":"https://github.com/prosapient/phone_verification","last_synced_at":"2025-12-11T23:47:27.660Z","repository":{"id":33190638,"uuid":"154561881","full_name":"prosapient/phone_verification","owner":"prosapient","description":"Elixir library for phone numbers verification","archived":false,"fork":false,"pushed_at":"2023-03-13T08:37:29.000Z","size":70,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T08:12:01.123Z","etag":null,"topics":["authy","elixir","phone-verification","sms","twilio"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prosapient.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-10-24T20:02:23.000Z","updated_at":"2024-02-06T06:57:02.000Z","dependencies_parsed_at":"2023-07-12T17:16:40.367Z","dependency_job_id":null,"html_url":"https://github.com/prosapient/phone_verification","commit_stats":null,"previous_names":["fuelen/phone_verification"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/prosapient/phone_verification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosapient%2Fphone_verification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosapient%2Fphone_verification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosapient%2Fphone_verification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosapient%2Fphone_verification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prosapient","download_url":"https://codeload.github.com/prosapient/phone_verification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosapient%2Fphone_verification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048705,"owners_count":23868744,"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":["authy","elixir","phone-verification","sms","twilio"],"created_at":"2024-11-01T13:05:18.711Z","updated_at":"2025-12-11T23:47:27.604Z","avatar_url":"https://github.com/prosapient.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhoneVerification\n\nThe package allows you to verify phone number using simple API and one of the providers (currently only Authy is supported).\n\n## Installation\n\nThe package can be installed by adding `phone_verification` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:jason, \"~\u003e 1.1\"}, # or any other JSON library\n    {:phone_verification, \"~\u003e 0.4.0\"}\n  ]\nend\n```\n## Config\n\nAdd the following configurations to your config file\n```elixir\nconfig :phone_verification,\n  provider: PhoneVerification.Provider.Authy,\n  default: [locale: :en, code_length: 4, via: :sms]\n\nconfig :phone_verification, PhoneVerification.Provider.Authy,\n  json_codec: Jason,\n  api_key: System.get_env(\"AUTHY_API_KEY\"),\n  mocks: %{}\n```\n\n## Usage\n\n```elixir\n\u003e PhoneVerification.start(%{phone_number: %PhoneVerification.PhoneNumber{country_code: \"380\", subscriber_number: \"000000000\"}})\n{:ok, %{message: \"Text message sent to +380 00-000-0000.\"}}\n\n\u003e PhoneVerification.check(%{phone_number: %PhoneVerification.PhoneNumber{country_code: \"380\", subscriber_number: \"000000000\"}, verification_code: \"1111\"})\n{:ok, %{message: \"Verification code is correct.\"}}\n\n\u003e PhoneVerification.check(%{phone_number: %PhoneVerification.PhoneNumber{country_code: \"380\", subscriber_number: \"000000000\"}, verification_code: \"1111\"})\n{:error,\n %{\n   code: \"60023\",\n   message: \"No pending verifications for +380 00-000-0000 found.\"\n }}\n\n\u003e %PhoneVerification.PhoneNumber{country_code: \"380\", subscriber_number: \"000000000\"} |\u003e to_string()\n\"+380000000000\"\n\n```\nDocs: [https://hexdocs.pm/phone_verification](https://hexdocs.pm/phone_verification).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosapient%2Fphone_verification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosapient%2Fphone_verification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosapient%2Fphone_verification/lists"}