PHP without a framework

From Rixort Wiki
Revision as of 13:34, 6 March 2021 by Paul (talk | contribs)
Jump to navigation Jump to search

Instructions

Initialise composer project:

composer init

Create skeleton directory structure:

mkdir public src

Run composer to install dependencies and create vendor:

composer install

Create skeleton front controller at public/index.php

<?php
declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';