An open API service indexing awesome lists of open source software.

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

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!