The SSM Algorithm is a proposed algorithm to detect numbers between exchanging messages.
If you want to install SSM algorithm in your local machine, you need to have git and composer in your computer. If you don't have composer in your machine, check this.
Once you have git in your machine, run the following command in the terminal or command line
git clone https://github.com/tisuchi/ssm-algorithm.git
It will generate a folder called ssm-algorithm in your current directory. Then head over to the directory. Now run the following command in your terminal / command line.
composer update
Finally run the following command.
composer dumpautoload
You have done all the necessary installation. Now you need to run your project.
To run your server, you need to run the following command.
php artisan serve
It will provide you a accessible url to run your project. It might be like this http://127.0.0.1:8000.
Now copy this url and run in your browser.
In order to access the web interface in the browser, you need to run the following url.
http://127.0.0.1:8000/add
You might able to see a web interface to input. Now you just input the message you want to check.
For example, I want to check here-
What is your whatsapp number
Once I hit the Check Now button, it will return either 1 or 0. In my case, it will return 1 that means it has detect some suspected words.
PHP Unit test has been used. If you want to run testing, then run the following command.
vendor/bin/phpunit