rmahna2 / simple-php-website

An introductory example of how to build a simple and minimal website built with PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple PHP Website

I put together this project while introducing a friend of mine to PHP. I decided to clean it up a bit and put it on Github so anyone new to PHP can have a taste of a very simple and minimal website built with PHP.

This project is meant for beginners. I've intentionally kept it minimal while introducing some separation of concerns.

Usage

I've made sure to make the running of this little site as simple as possible. There are only to steps go take:

  1. Download the project to the desired directory on your computer
  2. Populate the site_url field in includes/config.php with the desird site url.

Concepts

The project covers these programming concepts:

  • Variables
  • Arrays
  • Functions
  • Pretty links (/about) with fallback to query string (?page=about)
  • Basic example of separation of concerns (functionality, template, content)

If you have any questions or recommendations for the project, please create an issue or hit me up on Twitter @banago.

To help you take your knowledge of PHP to the next level, I've personally hunt down what I deem to be the best introductory course on PHP out there. I wish this course existed when I started learing PHP. Check it out on Udemy: PHP for Beginners Course.

Lisence

MIT

About

An introductory example of how to build a simple and minimal website built with PHP.


Languages

Language:HTML 58.1%Language:PHP 38.2%Language:CSS 3.7%