Chef Cookbook安装5.5包或源码

I'm new to Chef. I'm using the Chef PHP Cookbook to install PHP. Using the default setting it installs version 5.4.16.

I overrode the following:

default['php']['install_method'] = 'source'
default['php']['version'] = '5.5.38'
default['php']['checksum'] = '4f458c9b504269615715a62f182b7c2f89bb8284f484befc221b56a1571b506e'

Note: checksum I found at the download page, it's the sha256 value.

Considering I need PHP 5.5, not specifically 5.5.38, is installing from source the correct approach, or is there a preferred method and source is for specific versions?