A quick introduction into PHP web development
This tutorial in not finished! There may still be errors all over the place.
Feedback is greatly appreciated. Feel free to drop an issue, if you find any mistakes or if you have suggestions for improvements.
Start here.
This tutorial is intended for people who already have learned a dynamic, object oriented programming language, something like Ruby, Python or JavaScript.
The goal is to quickly cover the things you will probably encounter in modern PHP web applications in addition to the basic syntax:
- templating with Twig
- application frameworks (the tutorial will use Silex)
- OOP and Namespaces
- Dependency management with Composer
- the quirks and pitfalls of PHP and how to avoid them
This tutorial deliberately leaves out certain aspects of PHP that don't play an important role in modern PHP development, that are just bad style or outright dangerous. PHP has had enough of that in the past and we can do better.
This tutorial will try to cover a bunch of topics with an example and then explain how that example works. Afterwards, there will be a few sections where those topics are explored in more detail.