Copycat PHP library