yusufusta/rasba

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

3.5.6 2021-09-19 11:37 UTC

This package is auto-updated.

Last update: 2024-04-19 16:50:10 UTC


README

Build fast, small, uncomplicated websites. Bridge with PHP and JS.

✨ Features

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

📦 Install

You can easily install with Composer.

composer require yusufusta/rasba

🔎 Examples

You should check examples folder. Also simple a title:

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

$Rasba = new Rasba\Router();

$Rasba->get('/', function ($Rasba) {
    $Rasba->h1('Hello World!')->toBody();
});

$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