Skip to content

Ruby port of https://github.com/Melomap/mm_phonenumber to check valid myanmar mobile numbers, get mobile operator's name, sanitize mobile numbers and get mobile network types.

Notifications You must be signed in to change notification settings

swesweucsy/mm_phonenumbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MM-Phonenumbers

Ruby port of mm_phonenumber to check valid myanmar mobile numbers, get mobile operator's name, sanitize mobile numbers and get mobile network types.

Credit: Original script (Python) Original script (PHP)

Installation

Add this line to your application's Gemfile:

gem 'mm_phonenumbers'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mm_phonenumbers

Usage

require 'mm_phonenumbers'

MmPhonenumbers.is_valid_phone('09450012345')

MmPhonenumbers.get_telecom_name('09450012345')

MmPhonenumbers.is_provided_telecom('mpt','09450012345)

Contributing

  1. Fork it ( https://github.com/swesweucsy/mm_phonenumbers.git )
  2. Create your feature branch (git checkout -b my-new-feature)
  • Install ruby with rvm, if you haven't.
  • Run bundle install
  • Add a test case.
  • Implement the code.
  • Make the tests pass.
  • You can run with rake test or just rake in the repo.
  1. Commit your changes (git commit -am 'Add some feature')
  2. Push to the branch (git push origin my-new-feature)
  3. Create a new Pull Request

License

MIT

About

Ruby port of https://github.com/Melomap/mm_phonenumber to check valid myanmar mobile numbers, get mobile operator's name, sanitize mobile numbers and get mobile network types.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages