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
- Fork it ( https://github.com/swesweucsy/mm_phonenumbers.git )
- 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 justrake
in the repo.
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
MIT