views:

141

answers:

5

Is there any CMS in PHP in just 1 file?

EDIT

Thank you for all your suggestion. I can choose only 1 so I'd choose the one by Chacha102, which I could not find when Googling. You all earned my vote.

+2  A: 

Well, technically ANY CMS that is database-based can be condensed into a single file. That is really all that include does...

You could probably even write a file-based CMS that just rewrote itself everytime you made a change.

Now whether it is maintainable is a whole other idea. I'd probably stick away from trying to find a 1 file CMS, because as Felix said, it can't be that great..

I know a Github repo that is making a very small (almost 1 file) blogging CMS. I think when I actually tested it, it created another file or two for storing the data. Either way, very small footprint.

Chacha102
Ok that almost all CMS handle everything through the index.php file, calling other modules needed by `include`, but i wont define Drupal, Joomla or Wordpress a 'CMS in PHP in just 1 file'
DaNieL
+1  A: 

Barebonesmvc-php is 60 lines long and says it could be used for a CMS.

GreenMatt
A: 

Not a good one that is. Sounds like you would have to home brew your own solution at that rate.

Urda
A: 

You could effectively put a multi-file framework into one file, and have everything work using autoload.

whichdan
Why would you need an autoloader if everything is in one file?
Mike B
So you can develop with multiple files seamlessly.
whichdan
+3  A: 

OneFileCms.com?

DaNieL