jotajotaramos / php-autoload-basic

Basic PSR-4 autoload for PHP with basic controller examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-autoload-basic

Basic PSR-4 autoload for PHP with basic controller examples.

The APP

Just a simple ready-to-use APP with autoload included so you can avoid the initial setup. It will help you understand the use of namespaces in PHP.

Description

Two simple controllers in the /src folder (namespace entry point), one in the root folder and another one in a subfolder.

index.php in order to require the autoload.

Main controller method execution. It makes a call to the subfolder method.

Install

composer install

Usage

Just use it with your favorite server.

About

Basic PSR-4 autoload for PHP with basic controller examples


Languages

Language:PHP 100.0%