Smile Engine is a new kind of wheel. High Performance, Scalable, and full-stack PHP / js framework. Smile Engine works functional and modular only for PWA
1 - Get https://github.com/toptunes/Smile_Engine-Demo
It will work only in the root folder or if you use XAMPP make changes in the XAMPP setting:
DocumentRoot "c:/xampp/htdocs/Smile_Engine-Demo"
If you use DirectAdmin or Cpanel you should install it in the /public/ directory
2 - Go to /CPU/conn.php
and set database name and password to MySQL (it works with MySQLi - no PDO yet)
After you set the database name, Import this structure as an example.
https://github.com/toptunes/Smile_Engine-Demo/blob/master/database_name.sql
3 - Almost All php files in app/views/html/modules/
is an examples.
4 - Make a new file your_module_name.php
in /modules/
. And copy this code below.
<?php
$html_final = module('div','your_module_name','
Here you can write HTML, JSON, or just write hello world
If you want to use JSON you should learn how to make preload modules
');
?>
5 - If you use XAMPP, open http://127.0.0.1/your_module_name (you can see the module)
If you know core PHP you already know how to use SmileEngine, but some points exist about JS part that I will say soon!
We will make a lot of modules as a PHP file. But on per request will load one or maximum 5 child modules.
If you have the experience, you can make preload modules.
This Framework is suited for functional programmers that want to make easy scalable projects
You can't Define the function inside modules. either Do procedural programming or make a function on_ CPU/fn.php _
All existing modules are an example and are not part of the framework
https://www.linkedin.com/in/toptunes/
Online Demo : https://app.abyekiha.com/ Login into the panel with this number: 09354894522