Skip to content

iamsenthilprabu/sms-to-csv-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sms-to-csv-converter

Converts multiple VMG files to CSV

This is a command line PHP application, created to convert multiple SMS files (.VMG) into a single CSV file. This application reads all the SMS files (.VMG) in given folder and creates a CSV file with the following columns.

  • Date
  • Message type (Inbox/Sentbox)
  • Mobile Number
  • Text Message

Requirement

You need to have installed PHP to be available globally. Type php -v in the terminal to check you have it.

Preparation

Kindly prepare a folder that contains all your SMS files. (.VMG) Download this Repository into your computer.

Usage

Open your command prompt. Navigate to the downloaded repository folder. Type the following command.

php sms.php path/to/your/vmg/folder output_file_name

Hit enter. You will see the exported CSV file in the repository directory. [OR] You will see an error message if you entered an invalid directory.

Note: output_file_name is optional. The output file is always .csv and you don't need to give the file extension. If you don't give the output_file_name, file will be generated with the name: SMS_output_YYYY_MM_DD HH_MM_SS.csv

This application will process only the .vmg files in the given directory. Other files in the given directory will be automatically ignored.

Contribute

Pull requests are welcome.

In lieu of a formal style guide, take care to maintain the existing coding style.

License

Copyright (c) 2017 Senthilprabu Ponnusamy

About

Converts multiple SMS (.VMG) files to CSV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages