Tag: refactoring

  • 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…