PHPNews

Nordic.js 2017 Recap

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Tuesday October 3, 2017 - Permalink

Last month I travelled up north to my first JavaScript conference: Nordic.js. The entire conference was a great experience: the speakers, the location, the food ( kanelbullar! ), ... Here's a quick recap of my favorite talks. Ben Schwarz: Beyond the bubble Ben gave a talk about web performance, and how many developers are spoiled with their fast internet connections and high-end devices. The …

Continue reading »


Diving Into requestAnimationFrame With Benjamin De Cock

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Tuesday August 29, 2017 - Permalink

I love this post! requestAnimationFrame is a primitive browser API that doesn’t sound too interesting at first, but once you've grasped some basic concepts, it becomes an extremely powerful tool for dealing with animations in JavaScript. At its core, requestAnimationFrame doesn’t do much: it’s basically just a method that executes a callback. In fact, there are very few differences …

Continue reading »


Theme-Based Views in Laravel Using Vendor Namespaces

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Thursday August 24, 2017 - Permalink

I'm building a multi-tenant Laravel application. One of the requirements of the project is that every client can have their own theme based on their corporate guidelines. By default a few css adjustments will suffice, but some clients request a completely different template. Conditionally loading a different stylesheet per client is pretty trivial, but in order to use a completely different …

Continue reading »


Introducing Our Company Guidelines Site

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Monday August 21, 2017 - Permalink

We just open sourced our company guidelines site ! We previously kept the contents in a private wiki on GitHub, but I'm glad we finally put the time in giving the contents a real home. Like our docs site , the content is stored in markdown files, which can directly be edited on GitHub . The site deploys whenever something's pushed to the master branch. As for why we decided to open source …

Continue reading »


What's in our .babelrc?

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Wednesday August 16, 2017 - Permalink

A lot has been going in in JavaScript the past few years. One of my favorite things has been the usage of babel , which allows us to write future JavaScript syntax today. The babel ecosystem has tons of plugins and configuration options, I'd like to elaborate on our usage at Spatie . To provide some context on what we're using this for: we generally build medium-sized, non-SPA projects with …

Continue reading »


Generate Pdfs With Google Chrome on a Forge Provisioned Server

Written by Sebastian De Deyne - Published on Sebastian De Deyne
Aggregated on Friday August 4, 2017 - Permalink

This week I needed to export some charts generated with HTML & JavaScript as a pdf file. I already had implemented the charts on a webpage so I wanted a solution that allowed me to use my existing code for the pdfs. Headless Chrome to the rescue! Chrome can run as a cli tool, and print a pdf file from a url. Al I had to do was make some layout tweaks to make everything printer-friendly. …

Continue reading »