Forest header image

Symfony Finland
Random things on PHP, Symfony and web development

PHP microframeworks and the Symfony Framework Micro Kernel

A Micro Kernel was merged to the Symfony 2.8 branch on November 5th. This is an alternative to the traditional AppKernel used in applications built with the Symfony Standard Edition (SE) Distribution.

Let's study what is the difference between these Kernels and how they relate to PHP microframeworks like Silex, Slim and Lumen.


Written by Jani Tarvainen on Friday November 6, 2015
Permalink - Tags: symfony, microframework, silex, php, microkernel

A Web Application Firewall (WAF) with PHP and PSR-7?

Web sites and applications are a tempting target for malicious activities. Rather than the classic defacing of a website (to show you hacked) is fast becoming a thing of the past. Today the motivation of attackers is to hide the fact that your site or application has been compromised.


Written by Jani Tarvainen on Tuesday November 3, 2015
Permalink - Tags: php, security, firewall, psr7


PHP 7 compatibility through Symfony Polyfill, not transpiling

In the JavaScript realm it's become a common practise to transpile code. This means that you write your code in the latest & greatest syntax and translate that to something that is widely supported.

That's how JS developers are deploying ES 2015 to production today, even though complete browser or server implementations don't exist.


Written by Jani Tarvainen on Saturday October 31, 2015
Permalink - Tags: hhvm, php7, php, transpiling


State of the LAMP in 2015

The LAMP stack (Linux, Apache, MySQL, PHP) has been the mainstay of millions for web developers for well over a decade. But how is it doing and where is it going? Is calling it LAMP even valid any longer? Let's examine this by going through each of the letters in the acronym.


Written by Jani Tarvainen on Saturday October 24, 2015
Permalink - Tags: php, mysql, lamp, linux


MySQL 5.7 brings sexy back with JSON

NoSQL has been the darling of backend developers clamouring for high performance. NoSQL is fine for many uses, but many systems still use MySQL (or other relational databases) for data storage - and will continue to do so in the future.


Written by Jani Tarvainen on Wednesday October 21, 2015
Permalink - Tags: mysql, lamp, php, nosql, mongodb

Free SSL Certificates from Let's Encrypt to Drive HTTP/2 Adoption

It's widely stated that the use of HTTP/2 requires SSL/TLS encryption. This technically not true, but as clients only support HTTP/2 via SSL it's a defacto-requirement. With browser and server support for the new protocol version, the only hurdle is the overhead of setting up encryption.


Written by Jani Tarvainen on Tuesday October 20, 2015
Permalink - Tags: ssl, tls, http2



Technology Does Not Matter

I've had the privilege of attending some great events this year: WordCamp, PHP / eZ Publish Summer Camp and finally DrupalCon. These were all great experiences for a professional working with Web Content Management, but the most food for thought came from a much more modest event: A two hour breakfast seminar titled "The right content for the right context".


Written by Jani Tarvainen on Thursday October 15, 2015
Permalink - Tags: ezplatform, drupal, cms, business, wordpress

Varnish HTTP/2 with SSL/TLS offloading on H2O

Varnish is a popular reverse proxy which is used to accelerate page loading by caching copies as static HTML. Varnish does not support SSL/TLS, which is in practise required to take use of the new HTTP/2 protocol. This article describes one way of achieving high performance using Varnish and HTTP/2.


Written by Jani Tarvainen on Wednesday October 14, 2015
Permalink - Tags: http2, nginx, h2o, varnish

eZ Platform: A CMS built with the Symfony Framework

eZ Platform is the Open Source Content Management Platform from eZ Systems. Previously known as eZ Publish, the first version of the new product was launched in December 2015. Thanks to the Symfony Full Stack approach it is immediately familiar to Symfony2 developers, while extending it with content management features.


Written by Jani Tarvainen on Monday October 12, 2015
Permalink - Tags: symfony, ezplatform, php, cms


Symfony and Asset Management

The Standard Edition of the Symfony2 Framework has relied on a PHP asset management framework called Assetic. It has been around for quite a few years now and continues to serve static assets such as packaged CSS and JavaScript files. But is it relevant any longer?


Written by Jani Tarvainen on Sunday October 4, 2015
Permalink - Tags: symfony, gulp, bower, assetic, puli, webpack



BigPipe and the Symfony Framework

The Drupal 8 development team is doing great improvements to the product regarding HTTP caching. With validation tags, contexts and so on it feels familiar to people working with Symfony2 framework and the FOSHttpCacheBundle.

Another interesting addition is an adaptation of Facebook's BigPipe rendering strategy, which downloads HTML snippets in parallel for improved load times. Symfony2 as a HMVC framework can load bits asynchronously, but there is room to improve.


Written by Jani Tarvainen on Saturday September 26, 2015
Permalink - Tags: esi, drupal, bigpipe, facebook, javascript, caching, puli