Forest header image

Symfony Finland
Random things on PHP, Symfony and web development

Overview for php

A practical introduction to TypeScript for PHP developers

Most developers I know should be classified with the trendy word polyglot. Polyglot means a person that speaks multiple languages, where as for developers they're programming languages. Even if you consider yourself as a PHP developer, you're likely more diverse.

Programming languages rise and fall in relevance, so your skillset and routine varies over time - depending on trends as well as the line of work you're in. Let's take a practical look at why you might find TypeScript a worthy language to use in 2017 and beyond.


Written by Jani Tarvainen on Sunday February 5, 2017
Permalink - Tags: php, typescript, javascript

Sharing state in a Symfony hybrid with Twig, React & any JavaScript/PHP apps

Front end development has certainly grown up in the last few years. UI logic is increasingly being moved to the client side, but the traditional server-rendered views aren't going anywhere soon. And they shouldn't.

The two methods will live alongside each other and you'll have to work with two worlds. Let's explore an idea how to make this pleasant to work with, by sharing state between Twig templates and JavaScript.


Written by Jani Tarvainen on Wednesday January 25, 2017
Permalink - Tags: php, javascript, react, typescript

Symfony2 turns five, Symfony 3.2 continues the momentum

Late in 2015 the Symfony project as a whole celebrated it's tenth anniversary. Another significant milestone is reached in July 2016 as Symfony2, the second major iteration celebrates it's fifth anniversary. Five years is a long time in IT, but even more so in web development.


Written by Jani Tarvainen on Saturday July 23, 2016
Permalink - Tags: symfony, php

Cache enhancements in Symfony 3.1 and 3.2: PSR-6 and tag invalidation

It's been said that there are only two hard things in Computer Science: cache invalidation and naming things. It seems that this statement from Phil Karlton continues to be true. Naming things is as close as code can be to poetry, so I'll leave that for the philosophers to discuss.

Invalidating items from cache is much more clear-cut problem to define. The more efficient and easy the solution, the better. Symfony3 already has some improvements for that, with more coming in the near future.


Written by Jani Tarvainen on Wednesday June 22, 2016
Permalink - Tags: symfony, cache, php