Jun
22
2009
0

Iterating in PHP5

The chatter about PHP’s SPL has been picking up recently which is a good thing. SPL has been available for quite some time and a lot of people still don’t know about the awesome features it brings to the table. The problem I have however is that a lot of examples about the iterator interface don’t show off the power that it brings to the table.

For our example we are going to take a look at a simplified version of my ISBNDB wrapper which uses this technique to transparantly page the results received from the webservice. (more…)

Written by Robert van der Linde in: code | Tags: , ,
Jun
07
2009
4

Isbndb.com PHP wrapper

I was working on indexing my bookcollection this weekend and while looking at the stacks of books I had lying around I decided I wasn’t, under any circumstance, going to enter all the data from those books (ISBN/ISBN13, Author, Title, Summary, Publisher, etc) by hand.

So after googling around a bit I found ISBNDB.com which is, in essence, google for books. They crawl the internet searching for bookrelated data and then indexing it themselves. They really do store alot of information about books and cross index that so you can technically search for the categories an author fits in and then search other authors that fit in those same categories.

The best part is though, that they publish all this information through a free webservice. So I wrote a wrapper for this webservice that exposes all the methods and results used that can be used in PHP. If you are interested you can download it here. Documentation here.

Code after the jump:
(more…)

Written by Robert van der Linde in: code | Tags: , , ,
Sep
15
2008
0

POP3 Class

I’ve finally found the time to refactor and document my POP3 class. It’s meant as a low level POP3 Interface so you can talk to a POP3 server. I needed this for a project a while ago and couldn’t find a neat PHP5 class that would do what I wanted it to do.

POP3 sourcecode

Written by admin in: code | Tags: , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes