Tioxs / RasBa

RasBa, makes it easy to create web sites with PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RasBa

Build fast, small, uncomplicated websites.

✨ Features

With RasbaHTML, the page is almost blank. All texts and variables are added while the page is loading (with RasbaJS)

  • Router
  • Easy, small
  • Advanced DOM
  • Anti-Scrap (like Vue)
  • DataBase

πŸ“¦ Install

You can easily install with Composer.

composer require quiec/rasba

πŸ”Ž Examples

You should check [examples](https://github.com/Quiec/RasBa/tree/master/examples) folder. Also simple a title:

<?php
require './vendor/autoload.php';

$Rasba = new Rasba\Router();


$Rasba->get('/', function ($Request, $Rasba, $Match) {
    $Rasba->Response->setStatusCode(302);
    $Rasba->Response->headers->set('Location', '/saymyname/Heisenberg');
});

$Rasba->post('/saymyname/(.*)', function ($Request, $Rasba, $Match) {
    $Hello = $Rasba->h1(rawurldecode($Match->group(1)));
    $Rasba->addBody($Hello);    
});

$Rasba->run();

✏ .htaccess

You need edit .htaccess file like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

index.php should be your rasba file.

βœ… To-Do

  • Documantion

πŸ‘¨β€πŸ’» Author

Yusuf Usta

About

RasBa, makes it easy to create web sites with PHP.

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%