0.0
No commit activity in last 3 years
No release in over 3 years
Check and determine the connectivity of US phone numbers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

PhoneConnect

This is a Ruby gem integrated with RealPhoneValidation Turbo API to validate / determine the connectivity of US phone numbers.

It provides: Connected/Disconnected, Phone Type (landline, cell, VoIP), & Carrier ID.

Installation

Add this line to your application's Gemfile:

gem 'phone_connect'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phone_connect

Usage

Add the following configurations in config/initializers:

# phone_connect_config.rb

PhoneConnect.configure do |config|
  config.token = "5FA3B89E-21A4-C4E1-2AB2-B87BA3C1659F" # RealPhoneValidation Token
  config.timeout = 5 # Request Timeout
end

Then simply use the following command:

response = PhoneConnect.response "9991112222" # your testing phone numebr
# => {"status"=>"connected", "error_text"=>nil, "iscell"=>"Y", "cnam"=>"WIRELESS CALLER", "carrier"=>"Verizon Wireless"}
# => {"status"=>"disconnected", "error_text"=>nil, "iscell"=>"N", "cnam"=>"Unavailable", "carrier"=>"Pioneer Tel Coop"}
# status could be connected|connected-75|busy|pending|disconnected

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/phone_connect. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.