Helpers

The helpers are where you can put any misc, generic classes for re-use in your API. We put a few of them in there to get you going. The FileHelper was one we left blank, but you can fill it in with any file operations you need to do.

Helper Examples

Here are a few example helpers you can start using if you need them, but the helpers are mostly for you to create and use.

//This is how you include your helper.
use SlenderApi\Helpers\EmailTemplatesHelper;

EmailTemplatesHelper: This is a simple helper where you
can put any email templates you may need to use for sending email.

ImageHelper: This helper allows you to do image conversions and
transparent backgrounds. Feel free to expand on it.

MailHelper: This helper has a SendMail method you can use to send emails.
We are using PHPMailer to send messages. If you want to use a different
vendor, you can swap it out in this file and use it instead.

TimeHelper: This helper allows you to convert UTC time to the user's
local time. Feel free to expand on this as well.