News for hackers. Stuff that matters.
Re:PHP API Framework by evantahler on Monday May 02, 2011 @05:51PM (#2508021)
DAVE is a minimalist, multi-node, transactional API framework written in PHP

Dave contains an end-to-end API test suite for TDD, a Task model, an Active Database Model, and a stand-alone development server (written in only PHP as well) to get you started.

Re:PHP API Framework by rayboyd on Monday May 02, 2011 @06:18PM (#2508142)
Why lock the platform into 5.3 without making use of 5.3 features (namespaces would clean the structure up a little). Why not use getops for the command line arg processing rather than your own __parseArgs function. The framework seems like a odd mix of procedural and oop paradigms. And considering it's a framework (and transactional), why did you not use PDO for the database access?

I'm asking out of curiosity only because recently I've had a lot of PHP work on.

Re:PHP API Framework by evantahler on Monday May 02, 2011 @11:42PM (#2508914)
Hi Ray!

Those are exactly the types of comments I was hoping to get form posting here to help flesh this project out.

The main reason I stayed away from PDO is that I was trying to support both relational and non-relational databases (support for Mongo already). I certainly could have used PDO within the mySQL layer, but the next level of abstraction for the DAVE actions was the main goal. I very well may switch over to PDO to make the mySQL implementation into a generic 'relational' driver if I get enough comments/requests about it.

The version jump to 5.3 is new and was necessitated by some of the DaveObjects. I certainly will be using getops() instead. Thanks for the suggestion!

Re:PHP API Framework by quinndupont on Monday May 02, 2011 @06:16PM (#2508135)
Wow, it looks great! Lots of features (CRON even!) and doesn't shackle you with MVC. Might be just the thing to reign-in my free-wheeling PHP style without being too restrictive.
Re:PHP API Framework by sinzone on Monday May 02, 2011 @06:26PM (#2508173)
There are plenty of those, like this: https://github.com/Mashaper/mashape-php-library