Skip to content

Basic Folder and File Structure For PHP Application Using Autoloading and Namespace With Composer

Notifications You must be signed in to change notification settings

myapit/basicautoloadnamespacephp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basicautoloadnamespacephp

Basic Folder and File Structure For PHP Application Using Autoloading and Namespace With Composer

Requirements

-PHP 5.6 and above -PDO extension -composer

This strcutre will be using Autoloading and Namespace in PHP. Composer to generate autoloading based on PSR-4

-any changes to /app/ folder, execute $composer dump-autoload -o

To install any packages, go to https://packagist.org/ and search for the package's name. Edit your composer.json file, add the package's detail like below:

{ "require": { "vendor/package": "1.3.2", "vendor/package2": "1.*", "vendor/package3": "^2.0.3" } }

-execute #composer install

About

Basic Folder and File Structure For PHP Application Using Autoloading and Namespace With Composer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages