http://www.phpclasses.org/cpf