examples
examples copied to clipboard
Add PHP Send Message example
This PR adds a PHP version of the sendMessage()
example as described in (https://github.com/appwrite/appwrite/issues/3955).
The PR uses the same channels and services as the other send messages PRs, that way the examples will be consistent with each other. Services used are Mailgun
and Twilio
.
Hope the PR is satisfactory, looking forward to the review. 🙂 Screenshots are included below. 👍
I could not get autoloading inside the function to work, therefore I had to use include_once
instead. I tried PSR-4
and classmap
, but the runtime refused to find the files in src
, even though they were copied to the .tar
successfully by Docker. Might be something to look further into at a later date.
Screenshots of working function.
SMS
Image resized
Discord
Closes https://github.com/appwrite/appwrite/issues/3955