1. Go to this page and download the library: Download masterforweb/kuri library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
masterforweb / kuri example snippets
kuri();
function index() {
echo 'Hello World! Is index page';
}
_kuri();
function index_kuri() {
echo 'Hello World! Is index page';
}
function id_kuri(int $id){
echo "result $id";
}
_kuri();
class news_kuri {
function id($id){
echo 'ID ='.$id;
}
}
_kuri();
class news_kuri {
function get($id){
echo 'ID ='.$id;
}
function post($title, $text) {
$sql = "INSERT INTO `news` (`title`, `name`) VALUES($title, $text);";
}
}