Introduction
i actually wrote the node version of this at the same time as the my published Onesignal extension two years ago but for some reason never actually published it.
In todays (14th August 2026) Wappler monthly meetup we discussed SMS and 2FA which reminded me i had never actually published this.
So i have added a PHP version and here it is.
Installation
Via Wappler
I strongly recommend installing extensions using the Wappler extension installer or dependencies may be missed.
Via NPM
The npm is here
The Extension
https://www.npmjs.com/package/@hyperbytes/twilio-sms
The Extension can be found in the new "Notification Modules" group
Creating a Twilio account
Firstly you need to create a Twilio account, add some credit and purchase a Twilio number.
Prices vary dependent on the number but generally the cost is around $1/ euro
Adding Credentials
Once you have your account you need to retrieve your account details from your dashboard. YOU will need your Account SID, Auth Token and a Twilio phone number
Once you have then they need to be stored as ENV variables via workflows settings
Using the extension
now create an API action and add the extension and add data to the fields.
The extension returns data as to the message sent.
tsms: {
sid: "SMc0c68f23f2faeaad184a6cb8c91d8003",
status: "queued",
to: "+447780999999",
from: "+447723999999",
body: "Hello World",
numSegments: "1",
direction: "outbound-api",
dateCreated: "2026-08-14T19:28:32+0000",
dateSent: null,
dateUpdated: "2026-08-14T19:28:32+0000",
price: null,
priceUnit: "USD",
errorCode: null,
errorMessage: null,
accountSid: "AC09ed370628f6416a5fb398174d8e8750",
messagingServiceSid: null,
uri: "/2010-04-01/Accounts/AC09ed370628f6416a5fb398174d8e8750/Messages/SMc0c68f23f2faeaad184a6cb8c91d8003.json",
apiVersion: "2010-04-01",
numMedia: "0",
subresourceUris: {
media: "/2010-04-01/Accounts/AC09ed370628f6416a5fb398174d8e8750/Messages/SMc0c68f23f2faeaad184a6cb8c91d8003/Media.json"
}
}
}
PLEASE NOTE
The php version was written about 30 minutes ago and has only had basic testing. Any issues let me know.





