yusufusta / rasba
RasBa, makes it easy to create web pages with PHP.
3.5.6
2021-09-19 11:37 UTC
Requires
- airmanbzh/php-html-generator: ^1.0
- latte/latte: ^2.10
- nikic/fast-route: ^1.3
- paragonie/easydb: ^2
- spatie/regex: ^1.4
- symfony/http-foundation: ^5.2
- tholu/php-packer: ^0.2.0
Requires (Dev)
- phpunit/phpunit: ^9
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.
- Router
- Easy, small
- Anti-Scrap / RasbaJs
- DataBase
- Template Engine
- More JS function
📦 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