Django-like PHP framework

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
phu
Forum Commoner
Posts: 61
Joined: Tue Mar 30, 2010 6:18 pm

Django-like PHP framework

Post by phu »

I've been working on this off and on for a little while, and it's matured to the point where I've posted it for public consumption (under a Creative Commons license; see LICENSE.html or the link in README.textile).

Protoman on github

There's a good deal of fun code in there; the only bit that probably needs a lot of help as it stands is db/Saveable.php, which came from a previous project and will benefit from some review and refactoring. The poor thing has been gutted pretty badly and had a lot of its functionality moved to other (now cleaner) classes.

Points of interest:
Main (front) controller class
Definition of basic data types

Examples:
Entry point (settings definition)
URL definition
Reusable blog app
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Django-like PHP framework

Post by Christopher »

What kind of critique are you looking for?
(#10850)
phu
Forum Commoner
Posts: 61
Joined: Tue Mar 30, 2010 6:18 pm

Re: Django-like PHP framework

Post by phu »

Well, any suggestions, really; there's a list of incomplete and pending features, so any opinions on how they'd best be implemented, particularly if people have interface preferences based on existing, similar software.

Also, efficiency suggestions would be excellent. The dev challenge I suggested would be a good example; if people are interested in how things are done in this project (URL routing, template inheritance, query generation, etc.), it could be educational for everyone to discuss potentially better ways to handle them.

It's an open-source project, so community input is important. :)
Post Reply