sharafc / php-explorer-blog

Learning PHP with a blog. Starting from the barest possible implementation, to a fully blown OOP project.

Repository from Github https://github.comsharafc/php-explorer-blogRepository from Github https://github.comsharafc/php-explorer-blog

Learning PHP with a blog

Initial version needed to be done with some not-standard compliant coding conventions and debugging methodology which I did only partially use. Rest should be PSR compliant.

Prospect

In the future:

  • want to change everything completely to a more modular approach and PSR
  • switch everything to OOP
  • use PSR compliant methodology

Updates

Version 2:

  • Added a simple logger functionality (not PSR-3 compliant) which is able to write to the console instead of writing in the DOM
  • Added a very simple control, model, view mechanism and routing (dispatching). Therefore the overall link structure changed and setting up a vhost on a local dev environment is recommended:
NameVirtualHost *:80
<VirtualHost *:80>
 DocumentRoot <your htdocs>
 ServerName localhost
</VirtualHost>

<VirtualHost *:80>
 DocumentRoot <your htdocs><yourprojectname>
 ServerName <yourprojectname>.localhost
</VirtualHost>

Version 1:

Training compatible structure and functionality. No separation of concerns, lots of "debugging" messages in the frontend. Treading on common ground to pass the evaluation, although I know that it is not PSR compliant etc. pp.

About

Learning PHP with a blog. Starting from the barest possible implementation, to a fully blown OOP project.

License:MIT License


Languages

Language:PHP 92.9%Language:CSS 6.6%Language:Hack 0.5%