Getting Started

Requirements

  • PHP 5.5 or higher.
  • Composer for installation

Installation

First, create your project directory.

cd /var/www
mkdir my-project

Then install rakit framework using composer command below:

composer require "rakit/framework"

Hello World

Create index.php, and write scripts below:

<?php
        
use Rakit\Framework\App;

require("vendor/autoload.php");

// initialize your app
$app = new App('my-awesome-app');

// register routes
$app->get('/', function() {
    return "Hello World!";
});

// run app
$app->run();

Start your server (in this case we are using PHP built-in server):

php -S localhost:8000

Open ‘http://localhost:8000’ in your browser, and voila!

Guide

Configuration

TODO: write this

Routing

TODO: write this

Middleware

TODO: write this

Request

TODO: write this

Response

TODO: write this

Container

TODO: write this