PHP code example of velkymx / vibefw
1. Go to this page and download the library: Download velkymx/vibefw library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
velkymx / vibefw example snippets
$query = User::where('active', true);
if ($adminOnly) {
$query = $query->where('role', 'admin'); // Capture the new instance
}
$users = $query->orderBy('name')->get();
public function index(Request $request): Response
{
return $this->view('welcome')
->header('X-Framework', 'VibeFW')
->cache(3600);
}
bash
php fw make:spa
bash
./frankenphp php-server --listen :8080 --worker public/index.php