PHP code example of kip / framework

1. Go to this page and download the library: Download kip/framework 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/ */

    

kip / framework example snippets




namespace App\Controllers;

use Kip\Request;
use Kip\Session;
use Kip\View;

final class PostsController
{
    public function __construct(private View $view, private Session $session, private Request $request) {}

    public function index(): string
    {
        return $this->view->render('posts/index', ['title' => 'Posts']);
    }
}