0.0
No commit activity in last 3 years
No release in over 3 years
To check valid myanmar mobile numbers,get mobile operator name, sanitize mobile numbers and get mobile network types.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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