A simple directory structure for Website development using PHP for backend
A simple directory structure and basic PHP as well as JS functionalities are provided for easy development of any web application. Currently, configuration for only Apache is supported.
- All resources are, by default, private and hotlink-protected
- Direct access to all resources is not allowed
- Sample error-document templates are provided
- Prevent older browser support with fallback as custom page for list of browsers to download if the user uses any unsupported browser
- Project-wide configuration for credentials from a single point
- SNS support for Google+, Twitter, OpenGraph and Bing
- PHP-Mailer provided pre-setup for sending mails using SMTP
- w3.css/w3.js provided as lightweight CSS/JS framework
All the above features can be changed to suite the demand of the work.
project_root |- Resources/ |- Documents/ (* Put all your documents here *) |- Images/ |- Browsers/ |- Logo/ |- Menu/ |- Platforms |- SNS/ |- Logo |- Includes/ |- Forms/ (* Put all your forms here *) |- Scripts/ |- Backend/ (* Put all your PHP files here *) |- Common/ |- Library/ |- Frontend/ (* Put all your JS files here *) |- Library/ |- Styles/ (* Put all your stylesheets here *) |- Fonts/ |- .htaccess |- browsersupport.php |- home.php |- index.php
- Rename 'template' in line 22 of .htaccess to your project name
- Edit all values in Project.php located at Resources/Scripts/Backend/Common
- Start developing.
- Feel free to contribute. Just create a new branch and start developing on it
- Would be glad if .htaccess alternatives for different servers is added