PHP

Thumbnail
Setting up a new PHP project

Door: Thijs Zumbrink
10-03-2017 12:13

In this article I will walk through the steps I take when setting up a new PHP project. I will explain the reasoning for every choice I make. I hope this will give insight to experienced PHP developers that haven't started a new project from scratch in a while but have instead "grown" into a framework. Many of the things mentioned here are also recognizable in other languages.

Lees verder 0 reacties
Thumbnail
Coping with type invariance in PHP

Door: Thijs Zumbrink
23-02-2017 17:40

In this article I will discuss one of the problems you may run into when depending on PHP's relatively young type system. This problem is type invariance: the inability to change a method's signature when implementing an interface: it must exactly match including the type hints, which is too restrictive for optimal use. In the second half of the article, I give an example based on code in a real library.

Lees verder 0 reacties