Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/megaads-vn/phonenumber-converter

The tool to convert phone number in database
https://github.com/megaads-vn/phonenumber-converter

Last synced: 10 days ago
JSON representation

The tool to convert phone number in database

Awesome Lists containing this project

README

        

# Phone number converter for Laravel 4
vd: 0165 -> 035, 0120 -> 070, ...

## Installation:
**add in file composer.json**
```
"require": {
"megaads/phonenumber-converter": "^1.0"
}
```
## Usage:
**Register Provider**
```
# /Config/app.php
'providers' => [
Megaads\PhonenumberConverter\PhonenumberConverterServiceProvider
];

# /Config/phone_number_converter.php:
return [
'tables' => [
'table1' => ['column1_contain_phone_number', 'column2_contain_phone_number',...],
'table2' => ['column1_contain_phone_number', 'column2_contain_phone_number',...]
]
];
```
****
```
Go http://domain/package/phonenumber-converter
```