No description
Find a file
Patrick Louys 232714c2f2 Merge pull request #42 from Danack/patch-1
Changed lines that said not to commit the lock file.
2015-12-21 09:23:46 +01:00
01-front-controller.md explain __DIR__. solves #13 2015-01-14 21:16:39 +01:00
02-composer.md Changed lines that said not to commit the lock file. 2015-12-17 02:29:43 +00:00
03-error-handler.md Add leading zeros so that files list in correct order 2015-01-14 15:46:29 +02:00
04-http.md update header() call to fix overwrite header bug 2015-01-28 22:26:47 +01:00
05-router.md Fix typo in 05-router.md 2015-07-23 15:09:52 -07:00
06-dispatching-to-a-class.md Add leading zeros so that files list in correct order 2015-01-14 15:46:29 +02:00
07-inversion-of-control.md Correct namespace 2015-09-24 09:07:04 -03:00
08-dependency-injector.md #35 slightly more logical grouping 2015-11-11 15:35:46 -05:00
09-templating.md Fixed an issue. 2015-11-26 11:51:22 +05:30
10-dynamic-pages.md Fix code highlight 2015-11-29 19:44:09 +09:00
11-page-menu.md Replace 'FileMenuReader' with correct reader. 2015-12-12 23:37:09 -08:00
12-frontend.md frontend 2015-09-09 21:52:31 +02:00
README.md added README entry for new chapter 2015-02-08 20:53:31 +01:00
to-be-continued.md spacing 2015-09-09 21:55:58 +02:00

Create a PHP application without a framework

Introduction

If you are new to the language, this tutorial is not for you. This tutorial is aimed at people who have grasped the basics of PHP and know a little bit about object-oriented programming.

You should have at least heard of SOLID. If you are not familiar with it, now would be a good time to familiarize yourself with the principles before you start with the tutorial.

I saw a lot of people coming into the Stack Overflow PHP chatroom and asking if framework X is any good. Most of the time the answer was that they should just use PHP and not a framework to build their application. But many are overwhelmed by this and don't know where to start.

So my goal with this is to provide an easy resource that people can be pointed to. In most cases a framework does not make sense and writing an application from scratch with the help of some third party packages is much, much easier than some people think.

This tutorial was written for PHP 5.5 or newer versions. If you are using an older version, please upgrade it before you start. I recommend that you use the current stable version.

So let's get started right away with the first part.

Parts

  1. Front Controller
  2. Composer
  3. Error Handler
  4. HTTP
  5. Router
  6. Dispatching to a Class
  7. Inversion of Control
  8. Dependency Injector
  9. Templating
  10. Dynamic Pages
  11. Page Menu