Mini-mini PHP framework to create great websites, fast.
- check out my website which is based on this template
- or check out the demo website which is exactly this template
- This is a mini-mini-framework so the pagespeed should be awesome
- use the mini-framework functionality to do cool things very easy
- Read the documentation
- darkmode with great toogle and also possibility to add extra images for darkmode
- responsive website with sticky mobile bottom navigation
- icon support for icons you can host on your own server (no 3rd party request)
- self hosted website tracking system (optional)
- build pages with custom routes (pagepaths) with easy setip
- thats how you can create a new page:
- Navigate to the pages folder and create a new php file e.g. "services.php"
- Add the follwing code in pages/services.php:
<?php
/**
*
* @route: path="/services" name="services"
* @headline: Services
* @seotitle: My Sample Page Title
* @seodesc: This is my description to hope my seo ranking will be better
* @seokeywords: a few keywords
*
* navigation data:
* @navname: Services
* @navicon: code
* @navdisplay: 3:main
* @navmobile: :2main
*
*/
?>
<h1>Your html</h1>
- Thas it. Your site will be visible at your-domain.com/services
- check out the example in includes/blocks/visit-github.php
- create a new block in includes/blocks/my-block.php
- add content, e.g.
<p>Hello, my name is Stefan</p>
- display the block like this:
<?php showBlock('my-block') ?>
- edit it in config/config.php
- set up primary color for lightmode and darkmode
$config = [
'primary_color' => '#43836f',
'primary_color_darkmode' => '#bef1e1',
...
];
- if you want to add icons please open the svg file in browser
- copy between without the svg tags
- create a file in static/icons
- e.g. static/icons/new-icon.php
- use it like this
<p>My new icon looks like this: <?php get_icon('new-icon',26,'') ?></p>
- add your credentials in secrets/secrets.php
- install phpmailer class via terminal
- open the terminal and navigate to includes/libs
- command:
cd includes/libs
- now install compaser packages
- command:
composer install
- now you can use the sendMail function
$to = 'stefan@coden-lassen.de';
$subject = 'Test subject';
$reply_to = '';
$reply_to_name = '';
$message = 'Test message';
sendMail($to, $subject, $message, $reply_to, $reply_to_name);
- add your credentials in secrets/secrets.php
- you can now use the php function db_connect()
- this will return an connection in a variable
- you can now use it like this in a page:
$pdo = $this->db_connect();
$sql = "INSERT INTO tracking (datum, type, seite, referrer, session, event, para)
VALUES (:datum, :type, :seite, :referrer, :session, :event, :para)";
$stmt = $pdo->prepare($sql);
$data = [
'datum' => $datum,
'type' => $type,
'seite' => $seite,
'referrer' => $referrer,
'session' => $session,
'event' => $event,
'para' => $para
];
$stmt->execute($data);