A boilerplate for making a website using php. Features a config file to setup global variables such as..
- Current Page
- Navigation page
- Canonical Tags
- Page Title
- Page Description and a responsive navigation bar, all pages built with modular PHP includes, such as...
- navbar.php: The navigation bar
- footer.php: The footer
- head-tags.php: The HTML meta data tags this template can easily be modified to create a responsive, efficient PHP website.
The template comes with a .htaccess file that will automatically hide the .php extension from the URL, it will also redirect 404 and 403 errors to the following files...
- invalid404.php: The page could not be found
- forbidden403: You do not have permission to access this page
Ensure you have either a web server with PHP installed, or a working LAMP stack such as XAMPP. Place the contents of this repository in your "HTDOCS" folder or setup an appropriate virtual host and place the contents of this repository wherever you choose. Restart Apache and open index.php to view the home page.
What you will need...
- Web Server or LAMP Stack (XAMPP)
- PHP installed
How to download and setup the template
Navigate to your "HTDOCS" folder on your web server and clear the contents, clone this repository, (note the . at the end ensures the enclosing folder is not cloned)
git clone https://github.com/angusgoody/Rocket-PHP-Boilerplate.git .
- Angus Goody - Initial work - https://github.com/angusgoody