examples icon indicating copy to clipboard operation
examples copied to clipboard

Add PHP Send Message example

Open thinkverse opened this issue 2 years ago • 0 comments

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

phone-resized

Email

Screen Shot 2022-10-07 at 9 09 34 PM

Twitter

Screen Shot 2022-10-07 at 8 56 39 PM

Discord

Screen Shot 2022-10-07 at 8 43 38 PM

Closes https://github.com/appwrite/appwrite/issues/3955

thinkverse avatar Oct 07 '22 19:10 thinkverse