SiteBricks 1.2.1

Tiny flat-file websites made from Bricks.

About SiteBricks

SiteBricks is a deliberately small flat-file PHP website framework.

It began as a personal project around 2010 for creating websites quickly. SiteBricks 1.2 brings that original idea onto current PHP while keeping the part that made it interesting: simplicity.

The idea



Pages + Themes + Bricks + Config = a website.

Pages contain the information. Themes control presentation. Bricks provide optional functionality. Config contains the small amount of site-wide configuration required to connect everything together.

Keep Core small



SiteBricks follows one important rule:

If a feature can reasonably be a Brick, it does not belong in Core.

RSS is a Brick. Advertising is a Brick. Analytics is a Brick. Page lists are a Brick.

That means a SiteBricks website only carries the optional functionality it actually needs.

Ordinary files



SiteBricks pages are ordinary text files. There is no database requirement and no build process.

Numbered filenames can control page order:


01 Home.txt
10 Getting Started.txt
20 Bricks.txt
99 About SiteBricks.txt


The ordering numbers are hidden from visitors.

Old-school attitude, current PHP



SiteBricks deliberately takes inspiration from the simpler web: readable pages, obvious links, small files and websites that load quickly.

That does not mean preserving old security problems or obsolete PHP. The aim is current engineering with an uncomplicated approach.

The test



There is a simple test for SiteBricks development:

After using it for the first time, we want you to think: “That was easy.”