View e-mail in browser

newsletter #62

Hi, welcome to the 62th newsletter! 

A curated collection of useful PHP snippets that you can understand in 30 seconds or less.
A GitHub repo containing easy to understand PHP snippets. 

A PHP debugger written in PHP
Joe Watkins, core PHP developer and author of (amongst many other things) ptrheads, is busy creating a PHP debugger written in PHP that you can just pull in via composer require.

The road to dependecy injection
Mattias Noback shares how you can migrate a code base that fetches its dependencies using static method calls to code that uses dependency injection.

Building a PHP Framework
My buddy Frederick Vanbrabant recorded a cool video course on how to build a PHP framework using some popular components.

The Visual Perception of Code
My colleague Brent gives some good tips on how to improve the readability of your code.

Website monitoring. Without the hassle. (sponsored link)
Oh Dear! is the easiest way to monitor your website. It can detect and warn you about downtime, certificate problems, broken links and other nasty stuff. You can try it out for 10 days for free! No credit card needed.

Learn Docker & Containers using Interactive Browser-Based Scenarios
TJ Miller pointed me to a cool interactive introduction to Docker. Perfect for Docker noobs such as myself.

What's next for JavaScript?
Bram Van Damme, who runs the excellent blogn, recently gave a talk at the Frontend United 2018 conference on what will be coming to JavaScript in the next few years.

The art of the error message
Marina Posniak, UX writer at Spotify, shares some great tips on how to write error messages well.

Redecentralising the web
On his blog Hidde De Vries recaps a talk by Sir Tim Berners-Lee, the inventor of the web, on redecentralising the web.

A simple resource for finding and trying variable fonts
Nick Sherman created a cool site where you can play with variable fonts.

Meanwhile on Twitter

On Twitter I see a bunch of people regularly tweeting very nice code snippets.

Using return statements in a switch block

Process control in PHP

Useful links from the archives

How to Scan Fingerprints with Async PHP and React Native
In an amazing article on SitePoint, Christopher Pitt demonstrates how to create an async PHP server that can requests a fingerprint scan on the client.

Uncle Bob on object orientation and the solid principles
This a video of a great lecture Bob Martin gave a couple of years ago.

JavaScript's comma operator
Vitaly Gordon explains how the little known comma operator makes it easy to add some debugging statements in short hand array functions.

Diving Laravel
Mohammed Said, Laravel employee number #1, recently announced that he published a new site where he shares stuff he learned while researching the framework.

Bootable Model Traits
On the Tighten co blog Caleb Porzio wrote a small post on how you can boot your model traits.

What the hell are generics and why would I want them in PHP?
Frederick Vanbrabant, developer at madewithlove and co-organiser of PHP Antwerp, explains on his blog what generics are.

Classes, complexity, and functional programming
In this article Kent C. Dodds clearly explains what the downsides are of using Class in JavaScript.

Make your app fly with PHP OPcache
Recently this button to optimize PHP's OPcache was added to Laravel Forge.

What to expect from JavaScript ES2017
In a new blogpost André Neves, a React Native engineer at Big Human, introduces the new features that are coming with ES2017.

How to build screens for users, permissions and roles in a Laravel app
One of our more popular packages is laravel-permission. It enables you to easily save roles and permissions in the database. 

The status antipattern
In a new blogpost on the author (I couldn't find his real name) argues against using a simple status field.

Advertisement opportunities at

You are receiving this mail because you've subscribed at