Basic syntax

Simple Syntax #

Templating Engine #

Templating engine is super easy to utilise. It uses include feature built into PHP itself. Simply get started by navigating to /resources/views/your-page.view.php

Now create a new template at /resources/templates/template1.template.php, you can paste or write any HTML code into this template file.

After this, head back to /resources/views/your-page.view.php, and include the following code inside that file:

<?php
    $TemplateEngine = \SW\Source\Engine\TemplateEngine;
    $TemplateEngine->Render("your-page");
?>

Once saved, you should see your template part inside of the your-page view. TemplateEngine is very basic, allowing for a fast integration of files without relying on playing around with root directory folders etc.

Email Engine #

Our EmailEngine is a simple and quick way of handling email sending without writing your own SMTP code. It is compatible with any HTML email forms. Simply integrate the following code anywhere you need to send an email:

<?php
    $EmailEngine = \SW\Source\Engine\EmailEngine;
    $EmailTemplate = [
        "Subject" => "Simply-Web Subject",
        "Body" => $EmailEngine::LoadTemplate("welcome-email", $data);
    ];
    $result = $EmailEngine->Send("recepient@domain.com", $EmailTemplate);
    if (!$result) {
        die("Unable to send email");
    }
?>

We will be updating this Engine in the future update. For now it is simple and easy to use and is ready out of the box.

What are your feelings

Updated on February 21, 2026