Hackable CMS .. good for learning PHP ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Hackable CMS .. good for learning PHP ?

Post by gautamz07 »

Hey guys , i always love tiny libraries or frameworks , because you can always hack at the code and learn so much , i found a very tiny CMS(file based , no database) , HERE https://github.com/PhileCMS/Phile.

I just wanted a honest opinion , can some fundamental oops concepts really be learnt hacking through a source of a CMS like this ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Hackable CMS .. good for learning PHP ?

Post by Celauran »

Took a quick peek through the code base and it's not bad. Some not so great ideas in there -- custom autoloader, lots of reinventing the wheel, static methods, singletons -- but also some really high quality code.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Hackable CMS .. good for learning PHP ?

Post by gautamz07 »

Thanks alot celauran , yes the code infact is a fork of a project that was not under active development and it seems to have a very active community. can you elaborate on what do you mean on alot of re-inventing the wheel(i'am just curious) ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Hackable CMS .. good for learning PHP ?

Post by Celauran »

Things like writing their own router, request and response objects, session handlers, etc rather than using or extending existing solutions.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Hackable CMS .. good for learning PHP ?

Post by gautamz07 »

Thanks alot for answering my question .. perfect :)
Post Reply