Namespace and Autoload (Classmap, PSR-4, Files)

Description

This is a sample project about Composer autoloading system include Classmap, PSR-4, Files and Namespace to explain to understand clearly and easily.

Project Requirements

Installation

Just run below commands

git clone https://github.com/thetminnhtun/autoload_and_namespace.git PROJECT_FOLDER

cd PROJECT_FOLDER

composer dump-autoload

php -S localhost:3000
  • PHP Web Server will be running on localhost:3000
  • Done!

Ref: Composer Documentation