poznet/tools

Tools for legacy projects

0.0.2 2017-12-17 12:02 UTC

This package is auto-updated.

Last update: 2024-12-13 23:28:15 UTC


README

Google Captcha

Class : \Poznet\Tools\CaptchaHelper

requires HttpFundatiom\Request

example :

$validator = new CaptchaHelper('googlecaptchasecret');
$validator->validate(Request)

returns true/false based from google api response

SwiftMailer

Class : \Poznet\Tools\MailerHelper

requires Swiftmailer

example :

$mailer = new MailerHelper('arraywithsmtpaccessdata');
$mailer->send($subject,$from,$to,$body);

returns true/false