Hannes Van De Vreken

Hannes Van De Vreken

Engineering

Concurrent HTTP requests without opening too many connections

I’ve been performing a talk on PSR-7 at PHP meetups and conferences. In that talk I demo the use of Guzzle to perform concurrent

Engineering

*AwareInterfaces: simple interfaces with getter and setter

Sometimes you see simple interfaces with a getter and a setter for a specific type of object. Some examples are league/event‘s EmitterAwareInterface and

Engineering

Why You Should Avoid Over-Abstracting

Some time ago I started working on an existing project, so I read the documentation before diving in. At the top of the contributing.md

Engineering

PHP Docblock return types

Return type hinting is great! When I use my IDE and experiment with classes that I haven’t used before, I really love that it

Engineering

HTTP Client for SDKs

SDKs I like using SDKs when I’m creating prototypes. It’s super easy to get started. You copy and paste some code samples, fill

Engineering

Displaying stream progress in PHP

With PHP you can, next to handling HTTP requests, invoke scripts from the command line. For a typical web application this could be used to

Engineering

Code Style options for Cleaner Diffs

Our previous blog post covered tips on code style fixing while working on legacy projects. The blog post was very generic and the ideas are

Engineering

Improving code style when working on a legacy code base

Legacy projects Old projects (maybe even 6 months or less) often come without test suites, are tightly coupled with an outdated version of a framework

Engineering

Tilde and caret version constraints in Composer

When installing a dependency, we are used to installing a version that adheres to a known public interface and does what it promises. That way

Engineering

PHP type hints: self and parent

In PHP we can type hint function arguments since version 5.0. Over the years and with newer versions of PHP the number of possible

Engineering

Use gitattributes to keep your tests out of other people's production

A quick tip here, for all PHP developers out there who author packages registered on packagist.org. Add a .gitattributes file in the root of

Engineering

Laravel IoC container

At work, I’m currently modernizing a legacy project without composer into an application with less code and thus fewer bugs. The first composer package

Subscribe