Add placeholder application files
This commit is contained in:
parent
8ab07c1716
commit
61497e79b3
|
|
@ -3,3 +3,6 @@
|
|||
|
||||
# Runtime / writable directories:
|
||||
var/
|
||||
|
||||
# Environment variables:
|
||||
*.env
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
DB_HOST=127.0.0.1
|
||||
DB_NAME=PHPStarter
|
||||
DB_PORT=3306
|
||||
DB_SOCKET=/var/run/mysqld/mysqld10.sock
|
||||
DB_USER=PHPStarter_user
|
||||
DB_PASS=PHPStarter_user_password
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PHPStarter</title>
|
||||
<link rel="stylesheet" type="text/css" href="./css/PHPStarter.css">
|
||||
<link rel="icon" type="image/x-icon" href="./icons/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<h1>PHPStarter</h1>
|
||||
<script type="text/javascript" src="./js/PHPStarter.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace PHPStarter;
|
||||
|
||||
use PDO;
|
||||
use RuntimeException;
|
||||
|
||||
class DB
|
||||
{
|
||||
public static function connect(): PDO
|
||||
{
|
||||
throw new RuntimeException("DB connection not implemented yet.");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue