A Few Tips for Writing Useful Libraries in PHP
Kellan Elliott-McCrea seems to be right that "of all of PHP's many faults and quirks, perhaps it's most telling (and most crippling) is a cultural one, PHP programmers write applications, not libraries."