Welcome! Jean-Marc's personal blog

Bateau Belle Époque "Simplon", depuis le débarcadère de Saint-Sulpice.

Display 2 layers of geodata with Highmaps

by JavaScript

Posted on Friday, 10 June 2016

Highmaps is a JavaScript library for creating schematic maps on web sites and web applications. Its built-in responsiveness and easy integration make it an ideal choice for representing geodata dynamically. In this post, I will demonstrate how to create a 2-layer map of Europe population density with drilldown effect to reflect countries' specific data. Nothing particularly fancy here, as we will closely follow the demo on the highmaps' website. However, we will make sure that our map displays data retrieved from a database via an ajax call instead of dummy data and that country flags pop up when we hover over the map. As for every post in my blog, code is built on a fresh new Laravel installation (v 5.2). [...]

Read More

Add OAuth to Sentinel 2

by PHP Laravel Sentinel

Posted on Thursday, 12 May 2016

This post goes about the integration of the Laravel Socialite package to Sentinel 2 for OAuth Authentication. It allows visitors to register and sign in to your application via their own Google, Facebook, LinkedIn or Github account. This is kind of a long article because I will go through the whole installation process, but the code in itself isn't that sophisticated at all, so don't get intimidated by the tiny vertical scroll bar you see on the right side! [...]

Read More

Add Suspend and Ban features to Sentinel 2

by PHP Laravel Sentinel

Posted on Tuesday, 10 May 2016

In this article, I will describe the various steps needed to suspend/ban a user with the Sentinel authorization and authentication package implemented in Laravel 5.2. These options are not provided natively by the package, although they reveal much useful in practice, in particular when you want to prevent a malicious user to keep coming back and register to your site after you deleted his/her account. [...]

Read More

Upload a resized image with PHP

by PHP

Posted on Saturday, 02 April 2016

Resizing and formatting an image before it is uploaded on your server can be a long and tedious task. Why not doing so during the upload process? The next few lines of code will show you how. [...]

Read More

Blog Search


Hi there! My name is Jean-Marc Kleger and I'm a web developer. Welcome to my blog where a share some tips on how to deal with a selection of challenges encountered in my day-to-day coding workflow. Most articles are related to their own Github repo so that you can quickly experiment the code. Don't hesitate also to make use of the comment section at the end of each post to share your knowledge on the topic. Enjoy the visit!