php for a library