Why I chose Silex for this website


UPDATE: this is a very old post that i’m importing from my old site… i’m including it for historical purposes here’s the deployed site and the source for it

This is an introduction to my choice of framework in building this website.

Several options I considered for my website:

I opted to go with Silex. The source code is available here for your perusal.

I have gone through many iterations of this site. The first version was simply a clone of the homepage that I have on my university’s computer science department server. This wasn’t a very useful homepage as many of the projects that I wanted to show in a portfolio were tied to a database on that server.

I eventually moved towards a one-page style layout (in this commit) where the links in the navbar would scroll the page to pre-defined regions. I then ditched the old multipage layout and at this point I discovered Grav. After difficulties integrating Grav within my app (read more here), I decided to roll my own blogging solution modeled after Grav’s markdown content system.

I included a YAML Front Matter + Markdown Parser and used that to define the metadata for a blogpost.

There is still much to do (post sort order, paging, tagging, etc), but I appreciate the experience that I have gained in building this blogging system.