Tutorials

76 posts
Managing data flow on the client-side

Managing data flow on the client-side

I like to think of client-side applications as empty shells that get populated with data and where the source of that data can be anything: an object in your javascript code, an HTTP request, a JSON file, … Making sure this data flows correctly through your application is one hell of...

Webpack your bags

Webpack your bags

Last updated: December 2020 By now you’ve probably heard about this new cool tool on the block called Webpack. If you haven’t looked that much into it you’re probably a bit confused by some people calling it a build tool à la Gulp and other people calling...

PHP Docblock return types

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 tells me what kind of object a method returns to me. My IDE doesn’t use Artificial Intelligence to know that, it reads the PHP...

HTTP Client for SDKs

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 in the minimal configuration needed and there you have it: your first response from the service you’re checking out. In a world where most...

Displaying stream progress in PHP

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 run database migrations, insert data into the database from fixtures or seeders, repetitive tasks run by cron, clear the cache (cache:clear), general admin stuff…...

Tilde and caret version constraints in Composer

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 we can safely use it in our code. A dependency that uses semantic versioning allows you to predict whether it is still going to work...

PHP type hints: self and parent

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 type hints have increased. Here’s an overview: public function foo( // Since 5.0 self $self, parent $parent, FooInterface $foo, // Since 5.1 array $array,...

Using illuminate/config v5 outside of Laravel

Using illuminate/config v5 outside of Laravel

1. The Laravel framework has become very popular, between others, for its simplicity and expressiveness. With the recent release of Laravel v5, most of the core dependencies were updated. The same applies to illuminate/config, which is responsible for containing our app’s configuration. We are often involved in projects...

Elasticsearch Aggregations

Elasticsearch Aggregations

I have already covered how you can easily integrate Elasticsearch with your app, but I haven’t talked anything about how you can query your data. I won’t cover the basics of querying or filtering here, instead I will cover a cool feature called aggregations, it’s a way...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.