Skip to content

Commit 5d2324e

Browse files
updated
1 parent 2defa9b commit 5d2324e

8 files changed

Lines changed: 205 additions & 70 deletions

File tree

app/Controllers/Controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
abstract class Controller {
4+
abstract public function index();
5+
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"vlucas/phpdotenv": "^5.6"
1010
},
1111
"require-dev": {
12+
"fakerphp/faker": "^1.24",
1213
"laravel/pint": "^1.27",
1314
"phpstan/phpstan": "^2.1",
1415
"phpunit/phpunit": "^13.0",

composer.lock

Lines changed: 184 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/app.css

Lines changed: 0 additions & 49 deletions
This file was deleted.

public/images/icon.png

-60.4 KB
Binary file not shown.

public/images/logo.png

-683 KB
Binary file not shown.

public/index.php

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="description" content="Auth Project, PHP Project">
8-
<meta name="robots" content="index, follow">
9-
<link rel="icon" type="image/png" href="http://localhost:8080/public/images/logo.png">
10-
<title><?= $title ?? 'Auth Project'; ?></title>
11-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
12-
<link rel="stylesheet" href="./css/app.css" />
13-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
14-
</head>
15-
<body>
1+
<?php
162

3+
//define('APP_ROOT', __DIR__);
174

18-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
19-
<script src="./js/app.js"></script>
20-
</body>
21-
</html>
5+
require_once(__DIR__."/../vendor/autoload.php");
6+
//'require_once(__DIR__."/../bootstrap/");
7+
8+
spl_autoload_register(function($class) {
9+
$classFile = str_replace("\\", DIRECTORY_SEPARATOR, $class.".php");
10+
$classPath = "./../app/" . $classFile;
11+
12+
if(file_exists($classPath)){
13+
require_once($classPath);
14+
}
15+
});
16+
17+
session_start();

public/js/app.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)