Add initial project files

This commit is contained in:
Mateusz Pieła 2021-04-25 19:59:48 +02:00
commit 0b21896cd5
6 changed files with 96 additions and 0 deletions

18
includes/app.php Normal file
View file

@ -0,0 +1,18 @@
<?php
namespace Includes;
/**
* Main Application Class
* @package Includes
*/
class App
{
/**
* Start application
*/
public function start(){
print("SERVING WEBHOOK API");
}
}

View file

@ -0,0 +1,13 @@
<?php
require ROOT_DIR . "/vendor/autoload.php";
function autoLoader($classname) {
$file = ROOT_DIR . '\\' . $classname . '.php';
print_r($file);
$file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
include_once $file;
}
spl_autoload_register('autoLoader');
?>