Quickly dd anything from the commandline

Laravel’s tinker command allows to run any code you want as if you are inside your Laravel app. But if you want to run a single line of code if can be a bit bothersome. You must start up tinker, type the code, press enter, and quit tinker. Our new spatie/laravel-artisan-dd package contains an Artisan […]

Continue reading →

PHP Versions Stats – 2017.1 Edition

Jordi Boggiano, co-creator of Composer / Packages, published some new stats on the usage of PHP versions. Great to see that PHP 7 overall now represents over 50%. A quick note on methodology, because all these stats are imperfect as they just sample some subset of the PHP user base. I look in the packagist.org […]

Continue reading →

$PHP = 💩;

Simon Yousoufov argues that PHP is going the way of the dodo. It’s well known that PHP is a dead programming language and that its 22-year-old ecosystem is effectively useless now that we have Node and its fancy new asynchronous frameworks. Node’s superiority is evident because everyone knows that single-threaded, asynchronous, programs are better by […]

Continue reading →

PHP UK Conference 2017 videos have been released

PHP Uk Conference is an excellent conference where I had the pleasure of speaking this year. All sessions were recorded. Last week the organizers released all the videos. Here’s the entire playlist: https://www.youtube.com/playlist?list=PL_aPVo2HeGF-_djRi_UVWWLdkVpYQFnFm Freek Van der Herten Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in […]

Continue reading →

A conversation on laravel-html

Hi, how are you? I’m fine thanks! How are you? I saw you released another package last week. Yup yup, you mean laravel-html, right? It was actually coded up by my colleague Sebastian, who did an awesome job. But why put out yet another html generator? Html generation is a solved problem, right? Yes, it […]

Continue reading →

Partial model updates in Laravel

Michael Dyrynda, one of the co-hosts of the Laravel News and the North Meets South podcasts, explains how to easily uptime your models with data coming from requests. Instead of littering your controller method with multiple request()->has(‘field’) checks, you can employ the request object’s intersect method. The intersect method will return a new array containing […]

Continue reading →

Visualizing PHPUnit Tests

In an article on the Hackster.io site explains in detail how he made a nice visualization of unit test results. Pretty cool what you can do with a raspberry pi, some LEDS and a couple of scripts. I wanted to create a desktop gadget to visualize the progress of unit tests run via PHPUnit.I’ve named […]

Continue reading →