PHP without a framework: Difference between revisions

From Rixort Wiki
Jump to navigation Jump to search
Created page with "== Instructions == Initialise composer project: composer init Create skeleton front controller at <code>public/index.php</code> <?php declare(strict_types=1); require..."
 
Line 9: Line 9:
  <?php
  <?php
  declare(strict_types=1);
  declare(strict_types=1);
 
  require_once '../vendor/autoload.php';
  require_once '../vendor/autoload.php';

Revision as of 12:30, 6 March 2021

Instructions

Initialise composer project:

composer init

Create skeleton front controller at public/index.php

<?php
declare(strict_types=1);

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