<?php $a = new stdCLass(); $a->firtName = "John"; $a->lastName = "Doe"; Debug::pVarDump($a); ?> </p> <h2>Dates and Times</h2> <p>Mutt-PHP supports a variety of time() manipulations through the moment class, most of which are just obfuscations of date() broken into a different syntax, with a little modularity to faciliate date math.</p> <p>If we assume that <code>$moment = new Moment()</code>, then:</p> <pre> <?php $moment = new Moment(); echo '<p>' . $moment->nowMMDDYYYY() . ' //echo $moment->nowMMDDYYYY();</p>'; echo '<p>' . $moment->nowYYYYMMDD() . ' //echo $moment->nowYYYYMMDD();</p>'; echo '<p>' . $moment->nowTimestamp() . ' //echo $moment->nowTimestamp();</p>'; ?> </pre> <h2>Emailing</h2> <p>Mutt-PHP uses PHPMailer as a more robust alternative to mail(). The package is included as a composer dependency. Gor more infomation see <a href="https://github.com/PHPMailer/PHPMailer">PHPMailer on github</a>. Basic useage: </p> <pre> $mail = new PHPMailer; //$mail->SMTPDebug = 3; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication