Add a basic Yii2 application (directly cloned from the app/ directory of the Yii2 repository).
Yii2 Installation Methods

Provide two different methods to install the Yii2 Framework as a dependancy for the applications in this project: Composer and Git Submodules. Installing to the same location regardless of method allows Yii2 to strongly support Composer, without relying on it to function properly.
Ignore Vendor Directory

Add the vendor directory to the gitignore file. The Yii2 installation is a dependancy of this project, it should not be directly included.
Move Index to Public Webroot

Move the index.php file out of the application directory, and into the public webroot (public_html).
Move Resources

Move all of the static resource files (images, CSS, and JS) out of the application directory and into the public webroot.
Add Assets to Public Webroot

Move the assets folder inside public_html, and update the .gitignore file to match anything within that folder. Also update the gitignore file in the repository root directory, we do not need an entry for the assets directory if there is already a gitignore in that directory acting as a gitkeep.
Move Application Directory

Move the application directory out of "protected" and into "basic", we do not need a protected directory anymore as it all resides outside of the webroot (this also means we don't need an htaccess file).
Update Index

Update the index.php file to reflect the structure changes.
Also include the Composer autoloader if it exists, and a simple variable indicated which example application is being used.
Added newline at end of file.
Update Gitignore

Move the gitignore definition for ignoring the vendor directory into a gitignore file in the vendor directory so that it acts like a gitkeep file.