Excellent. I think the php::pear class was created for the same purpose, but not implemented fully?
If so, the Package['php-pear'] could be replaced with Class['php::pear'].