Code

Articles discussing new methods and possibilities that we use in our own code, and Open Source code too.

Yii2 stream responses

Yii2 stream responses

In your Yii2 controller, it is quite common practice to return the stream of a file to the browser for your user to download. However, it’s not so well documented you can set any stream reference as the content of your response.

read more
Named regex matches in php

Named regex matches in php

When dealing with those pesky regular expressions trying to get our matches by their index, making your code that little less readable.

read more
Git Repository Clean Up

Git Repository Clean Up

After you have been developing a project for some time your local git repo can become detached from the repository on ‘origin’. Here are a few commands you can run to clean things up a bit when you feel things are getting cluttered.

read more