PHP framework for minisites w/o DB

phrench

Not yet banned
Mar 10, 2008
1,387
21
0
/dev/null
I want to refrain from installing Wordpress for small sites with less than 10 pages and therefore I'm looking for a lightweight fast-loading solution that doesn't need a database.

For the design I'll go with either Bootstrap or HTML KickStart, but for the logic part I'm still undecided whether I should hand-code a dirty solution that simply includes header.php, sidebar.php and footer.php or if there's already something out there that will do the job.

I did already have a look at various flatfile CMS scripts, but they all are overkill and most often have bad HTML and CSS code that doesn't pass the W3C markup validator.

So, anybody knows of a minisite php skeleton?
 


You can also look into SQLite, which IS a database, but you don't need to do anything special - it's just one file that you can easily copy, backup, and it is kept inside your project.
 
You can also look into SQLite, which IS a database, but you don't need to do anything special - it's just one file that you can easily copy, backup, and it is kept inside your project.

No issue with that. I think some of those flat file CMS make use of it, but still the main issue remains: ugly HTML markup


hmm...

why the need for non-DB?

I use wolfCMS nowadays and could not be happier.

Wolf CMS - Open Source Content Management System -
::emp::

Because I'm too lazy to install a DB and worry about backing it up etc. I want to drag and drop ;)
Loading time is also an issue, DB queries slow down any request. Especially on shared hosting.
 
ah gotcha

well, for what it's worth do you even need PHP?

Sounds like a simple HTML site would do the job

::emp::
 
Let's say my site has 9 pages and I want to add one more page. I'd need to edit the header containing the navigation bar in 9 files.

Remember, I'm lazy ;)

But you're right, what I essentially want is a 95% static HTML site for satellite or churn and burn sites.
 
Ah I get what you wanna do now..

Well, I would code a dirty solution.

Check PHP Template Engine | Smarty for an easy templating solution including caching.
Very small, easy to use and sits at the heart of many CMS, actually.

::emp::
 
You, sir, have a good memory!

I thought about that before, but never played around with the non-wordpress domain feature.
Will have to give it a try, because based on the documentation I don't understand perfectly how this works.

Thanks for the hint!
 
I think for what you want to do, you should consider getting something made specially for what you need and then just use that over and over again.
 
Kirby is awesome, pages are loading very fast on a cheap shared hosting plan.

After some minor tweaks (enabling browser caching, replacing logo image with optimized version) the default theme has a page speed grade of 98 and a YSlow grade of 98!
If gzip compression would work on my shared hosting it would be 100.