DPC Amsterdam: CMF and Varnish

25.6.2015
I was in Amsterdam at DPC and did two workshops, one on the Symfony CMF and another on Http caching with Varnish. I also did a regular talk to introduce to Http caching. The Varnish workshop and talk I did together with David de Boer, who is co-authoring the FOSHttpCache and -Bundle with me.
Additionally, before the conference I went to Leeuwarden to present the CMF at a meetup of the PHP Friesland user group.

Conference: Dutch PHP Conference, 2015, Amsterdam, Netherlands

Workshop: CMF


Title: Symfony2 Content Management

Read more

varnish tutorial cmf conference


Varnish and HTTPS with Apache

20.3.2015
Today I wanted to run a website with HTTPS and Varnish. Varnish itself does not support SSL, and for good reasons. So the setup we need is HTTPS termination => Varnish => Webserver. So we need a software that can handle HTTPS and forward requests over HTTP to Varnish. A couple of options for HTTPS termination are HAProxy, Nginx, Squid or Apache. I went with Apache, as it was already installed on the server in question, thus reducing the complexity of the setup.

On Apache, you need to enable mod_proxy. The Apache SSL configuration looks like this:


#/etc/apache2/sites-available/example.com-ssl
<VirtualHost *:443>
ServerName www.example.com

ProxyPreserveHost On

Read more

varnish staging https configuration apache


Tutorial: HTTP caching with Varnish

23.1.2015
Conference: PHP Benelux Conference 2015, Antwerp, Belgium
Title: HTTP Caching with Varnish
Links: joind.in

For some scenarios, Varnish is the silver bullet to fix performance issues and go from slow site to lightning fast site. More often though, you will need to put some effort into your application to get good results. Ideally, you design your application to play well with caching from the outset. If you don’t know what you are doing, Varnish can also be the bullet to shoot yourself in the foot. Varnish is a server component that runs independent from your web server, making it useful whether your application is written in PHP,

Read more

caching http performance symfony varnish conference


Symfony2 Content Management in 50 Minuten

31.10.2014
Conference: Symfony Live 2014 Berlin
Title: Symfony2 Content Management in 50 Minuten
Links: Tutorial Repository, joind.in

Das Content Management Framework baut auf Symfony2 auf. Es besteht aus einer Sammlung von Bundles um einfach und bequem Content Management in Symfony2 Projekte einzubauen. Die Bundles bieten Grundfunktionen wie editierbare Menüs, URLs und Inhalte. Ich zeige wie man mit dem CMF loslegt und praktische Features nutzt wie das transparente Handling von mehrsprachigen Inhalten.

PS: Thanks @realdragonito for the amazing doodle!

cmf symfony german conference


Madison PHP Conference: HTTP Caching with Varnish

13.9.2014
Conference: Madison PHP Conference, Madison, WI
Title: HTTP Caching with Varnish
Links: Slides, joind.in

With the Varnish caching proxy, you can make slow websites blazingly fast. The basics are quite simple once you understand how the cache handling in HTTP works. For starters, we will look into HTTP and the Varnish configuration. The main course is going to be cache invalidation and the cache tagging strategy. For dessert, there will be an introduction to edge side includes (ESI) - all liberally sprinkled with examples from the FOSHttpCache library and some ideas from the FOSHttpCacheBundle for Symfony2.

varnish caching http performance symfony conference


DCPHP Washington: Introduction to the Symfony2 ecosystem

27.8.2014
Venue: DCPHP Washington PHP User Group, Canvas co-working space, 27.8.2014
Title: Introduction to the Symfony2 ecosystem
Links: Slides, meetup.com

Symfony2 is a powerful and very flexible web application framework. It is built as a set of components that can also be used independently.

The presentation will introduce the concepts of the Symfony2 framework and show how to work with it. We will also see related technologies like Twig, the default templating layer for Symfony.

Read more

symfony conference


Webmardi Fribourg: HTTP Caching with Varnish

3.6.2014
Venue: Webmardi Fribourg, 3.6.2014
Title: HTTP Caching with Varnish
Links: Slides, Techup.ch

With the Varnish caching proxy you can make slow websites blazingly fast. The basics are quite simple once you understand how the cache handling in HTTP works. For starters, we will look into HTTP and the varnish configuration. The main course is going to be cache invalidation and the cache tagging strategy. For desserts, there will be an introduction to edge side includes (ESI). All liberally sprinkled with examples from the FOSHttpCache PHP library and some ideas from the FOSHttpCacheBundle for Symfony2.

varnish conference


phpDay 2014: Content Management with Symfony2, 2 hour workshop

16.5.2014
Conference: phpDay Italy, 16-17.5.2014
Title: Content Management with Symfony2
Links: A few Slides, Tutorial Code, joind.in

The Content Management Framework (CMF) is a set of building blocks for content management. You can use just parts of it to add some content management to your Symfony2 project, or use the whole stack to build customized CMS applications for specific needs.

In this workshop, we do a hands-on tour through the CMF. We look at the existing functionality and implement simple features to get a feel for how things work.

* PHPCR-ODM Content repository with translation and versioning

Read more

symfony cmf conference


Symfony UserGroup ZH: Varnish caching with Symfony2

14.5.2014
Venue: Symfony UserGroup Zurich, 14.5.2014
Title: Varnish caching with Symfony2
Links: Slides, Meetup

With the Varnish caching proxy you can make slow websites blazingly fast. The basics are quite simple once you understand how the cache handling in HTTP works. For starters, we will look into HTTP and the varnish configuration. The main course is going to be cache invalidation and the cache tagging strategy. For desserts, there will be an introduction to edge side includes (ESI). All liberally sprinkled with examples from the FOSHttpCacheBundle for Symfony2.

symfony varnish conference