Jens Segers

WiFi magician at auki.io • Data scientist at realo.com • M.Sc Engineering Informatics • Laravel enthusiast


Latest

Running both PHP 5 and PHP 7 without wasting resources

Installing both PHP 5 and PHP 7 next to each other seems to be fairly simple. In this blog post, I will be showing you how you can free up some resources while you're transitioning to PHP 7.

Jens Segers on

List outdated composer packages with Climb

Composer is really missing an "outdated" command like most of the other package managers. Luckily, the Climb package has this covered!

Jens Segers on

Clearing PHP's OPcache with CacheTool

OPcache is great, it improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

Jens Segers on

Installing PHP 5.6 and Mcrypt on Mac OSX

Years ago I wrote a blog post on how to install the PHP mcrypt extension on OSX. But times change, and here's how you do it, for real.

Jens Segers on

Getting device information from your visitors

Mobiledetect is awesome, but it doesn't extract information for desktop devices and browser. So I decided to create my own package that extends Mobiledetect; meet the Agent.

Jens Segers on

Easy system email relay with Nullmailer and Mandrill

Installing and configuring Postfix or Exim often feels like rocket science to get everything set up without any security holes. But those days are over; meet the awesome Nullmailer + Mandrill combo!

Jens Segers on

Dependency injection with League's new Container

The PHP League just released version 2 of their dependency injection container, and this is why you should be excited.

Jens Segers on

Using Blade outside of Laravel

For me, Laravel's Blade templating engine is one of the best templating engines I have ever used. But wouldn't it be nice to use Blade outside of a Laravel project?

Jens Segers on

OSX Nano Syntax Highlighting

Wait, nano has syntax highlighting? Why did I not know this?

Jens Segers on

CLI progress bars in Laravel

Laravel 5.1 was released this week, and it came with a lot of interesting goodies. One of those goodies was the addition of Symfony's progress bar support for console commands.

Jens Segers on

Laravel error logging with Sentry

Decent error logging is one of the most important things when it comes to building applications. It is so unprofessional when a client calls you about a bug and you have no idea what he is talking about.

Jens Segers on

Tilde and caret version constraints in Composer

Recently, Composer changed their default version constraint from using ~ (tilde) to ^ (caret).

Jens Segers on

Id transformation with Optimus

Recently I wrote a blog post and gave a talk at php.gent about id obfuscation and how it can help hide your application internals from malicious users.

Jens Segers on

Behold the power of yield

The first time I read about yield in PHP was in the PHP 5.5 changelog back in 2013. Actually, I did not really give it that much attention, since I thought it was not that big of deal at the time.

Jens Segers on

Adding Whoops back to Laravel 5

If you have ever used Laravel 4, you have probably seen the following Whoops error screen÷ In Laravel 5, Taylor Otwell decided not to include the package by default anymore.

Jens Segers on

Easy id obfuscation with Laravel 5

Be sure to check out my new blog post about id obfuscation with Optimus. Obfuscating ids in urls is a great way of hiding your application's internals from your visitors.

Jens Segers on

Automatically check your composer file for security vulnerabilities

SensioLabs' Security Checker is a command line tool that checks if your application uses dependencies with known security vulnerabilities. Adding this to an existing project to automatically scan your composer file is really easy.

Jens Segers on

Laravel 5 Eloquent attribute casting is awesome

Attribute casting is a new feature of Laravel's Eloquent model that was recently added without really getting much attention (yet). So what does it do, and how can you use it?

Jens Segers on

Perceptual image hashes

I recently discovered perceptual image hashes when I was in charge of removing thumbnails from a large set of images. Perceptual hashes are a completely different concept compared to the usual cryptographic hashing methods such as MD5 or SHA.

Jens Segers on

PHP profiling with Blackfire

Blackfire is a PHP profiler that allows you to inspect your app's performance. It's great for discovering what exactly is slowing down your application, or what is eating away precious memory.

Jens Segers on

Vagrant manager

This week I discovered a small Vagrant utility for OSX that makes managing your Vagrant boxes really easy. Some may argue that Vagrant doesn't really need UI tool since the command line interface is so simple.

Jens Segers on

Laravel pagination with grouping and eager loading

I found myself in a bit of a strange situation when I was doing this query in Laravel: DB::with('relation')->groupBy('something')->paginate(50); I was using this query to display a large amount of records in a paginated table.

Jens Segers on

Debugging Laravel

Often you will want to debug what is going on in the background of your Laravel application, by doing something like var_dump or dd. When I used to work on a lot of CodeIgniter projects, we always had this debug bar enabled, that would show us all the query and logging information.

Jens Segers on

Server provisioning with Chef and knife-solo

Configuration management tools are awesome, if you are still doing everything manually or with bash scripts, then check out my blog post on infrastructure as code.

Jens Segers on

Laravel OAuth client

David Desberg, also known as Lusitanian, has created an awesome OAuth 1 and 2 client, so I decided to integrate it into Laravel.

Jens Segers on

Using Eloquent without Laravel

Not many people know this, but you can actually use the Laravel database component outside the Laravel framework (PyroCMS is actually using it in their CMS).

Jens Segers on

Laravel route model binding is awesome

If you haven't looked at Laravel's route model binding, you should definitely do it. Model binding allows you to inject model instances into your routes.

Jens Segers on

Laravel collections are awesome

The Collection class in Laravel is really awesome. In Laravel, database query results are actually returned as a collection object, that contains the actual results.

Jens Segers on

Using Guard to manage assets

This blog post is outdated; I ditched guard a long time ago in favor of Gulp I have been using jasonlewis/basset for quite a while to manage my assets in Laravel projects.

Jens Segers on

Installing the PHP mcrypt extension on OSX 10.9

This blog post is outdated, please read this updated blog post. The following steps will explain you how to install the mcrypt extension for the default PHP version (5.4.24) that is shipped with OSX Mavericks.

Jens Segers on