This privacy-conscious app uses a Twilio phone number to relay SMS messages to and from your phone, masking your phone number from the public. For more details, see Twilio's blog post about SMS forwarding.
To run the code, you will need the following:
- PHP 8.3
- Composer installed globally
- ngrok and a free ngrok account
- A Twilio account (free or paid) with an active phone number that can send SMS. If you are new to Twilio, create a free account.
After cloning the code to wherever you store your Go projects, and change into the project directory. Then, copy .env.example as .env, by running the following command:
cp -v .env.example .env
Then, set MY_PHONE_NUMBER
to the phone number (in E.164 format) that you want to receive SMS.
When that's done, run the following command to launch the application:
go run main.go
Then, use ngrok to create a secure tunnel between port 8080 on your local development machine and the public internet, making the application publicly accessible, by running the following command.
ngrok http 8080