⚡ ⚡ MVCPHP framwork build to make developement fast it includes migrations routing styling with tailwindcss,bultin php cli and other functionality it also come with built in login and sign up functionality.
php run
php run migrate
php run migrate:refresh
php run make:migration users
<?php
use App\config\App;
class users
{
public function up()
{
$sql = "CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
username VARCHAR(50),
email VARCHAR(50),
password VARCHAR(50),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
image VARCHAR(50))
ENGINE = INNODB;";
App::$app->database->pdo->exec($sql);
App::$app->database->log("users Table Created");
}
public function down()
{
$SQL_QUERY = "DROP TABLE IF EXISTS users;";
App::$app->database->log("users Droped");
App::$app->database->pdo->exec($SQL_QUERY);
}
}