Open-source generic web service to database interface?
I'm looking for a thin, generic layer (probably written in PHP) that sits between a database (probably MySQL) and web service clients (which could be anything). I imagine there would be config files of some sort that tell 开发者_开发技巧it how to map web service requests to database queries (or other DB commands). It would also need to handle authentication and authorization, of course.
I've done some googling but failed to find anything that fits the bill. Can anyone suggest something like this?
This is the right framework for your needs - http://sourceforge.net/projects/phprestsql/
Well, there are all sorts of PHP database frameworks that may very well fit the bill.
Most obvious is PDO, which is really just a set of classes for working with the database. It's baked into PHP 5.1+ so it doesn't even require a download.
Others are more complete, and do all sorts of work for you.
- Prado (Which gained features and size with the latest forks)
- Zend_DB
And search Google for a massively large list. Hope that helps.
phpMyAdmin might be what you are looking for.
精彩评论