Tag: PHP
-
Implement PSR-7 with Aura.Web
A while ago I was faced with the task of implementing PSR-7, the PHP recommendation for HTTP messages, within a legacy system. The main reason to want this change was because the system used a package called Aura.Web, which seemed not to be actively maintained at that time. With each new version of PHP one…
-
Refactor your old code
A long time ago a php file would contain all kind of stuff to make up a web page. It performed queries, handled user input and displayed or included HTML. Today these files contain mostly classes that work together to generate a similar page, but in a different way. This Object Oriented Programming is the…
-
Advanced caching technique
As every developer knows, a way to get a better performance is page-caching. This boost performance because fewer database queries has to be executed, but you can take caching a bit further. A plain html page is much faster loaded than one that is created by an interpreter like php, but it is not flexible…
-
Howto setup a development environment
What do you need? Before you can start creating your own environment there are some things you should know. When you are a front-end developer it is more likely you need a WAMP installation on a Windows machine, because you need Internet Explorer as it’s still the most used browser. When your work is mainly…
-
Reinventing the wheel
Disclaimer Instead of writing a disclaimer at the end of the article or hide it somewhere, I want to start with some notices. This article is no excuse to write all complex systems yourself. In fact there is a lot of great code already written, that you could or should use. You also should learn…