https://github.com/marshallovski/kona-php
a tiny Web Framework for PHP
https://github.com/marshallovski/kona-php
Last synced: 7 days ago
JSON representation
a tiny Web Framework for PHP
- Host: GitHub
- URL: https://github.com/marshallovski/kona-php
- Owner: marshallovski
- License: gpl-3.0
- Created: 2024-04-25T12:16:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-27T09:20:38.000Z (over 1 year ago)
- Last Synced: 2025-07-31T01:56:16.350Z (3 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kona
### A tiny Web Framework for PHP# Installation
Just unpack files from this repo to your PHP/Apache/nginx server. Examples are inside!Tested on PHP 8.3, PHP 7.x support not guaranteed, but you can try anyway!
# Examples
### Loading and displaying home page
assuming you are have theme `default`, with folder `home` and with `body.html` and `head.php` files.```php
load('head', 'home');
$body = $kona->load('body', 'home', 'html');$kona->execute(
$head,
$body,// head attributes (optional)
'class="js" data-head="true"'
);
``````html
Hello World!
``````php
setUTF8();
echo $kona->setViewport();
echo $kona->setTitle('Home page');
```More examples in the code of this repo!