Welcome to the code repository for the Object Oriented PHP Masterclass.
You will use this repository to complete the lessons which you will receive daily over the next few weeks.
THIS CODE IS PROVIDED WITH NO WARRANTY. IT HAS NOT BEEN SECURITY REVIEWED AND CONTAINS KNOWN SECURITY VULNERABILITIES. DO NOT RUN THIS CODE IN PRODUCTION ENVIRONMENTS.
NOTE: these instructions are for Mac or Linux. You're unfortunately on your own for Windows.
- Fork this repository. You'll see the Fork option and you can fork it to your own GitHub.
- Clone the repository using
git clone
. - Create a virtual host (see the virtual host data at the bottom of this file). Also add an entry to your /etc/hosts file.
- Create a database in MySQL.
- Use the schema.sql file to create a database schema.
- Copy config.php-init to config.php and fill in the database information.
- Copy public/htaccess-dist to public/.htaccess.
- Go to your local site and create a user account.
Use the following VirtualHost configuration:
<VirtualHost *:80>
ServerName news.local
DocumentRoot /path/to/codebase/public
<Directory /path/to/codebase/publicpublic>
DirectoryIndex index.php
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>