Build fast, small, uncomplicated websites.
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
You can easily install with Composer.
composer require quiec/rasba
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();
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.
- Documantion