Skip to content

Instantly share code, notes, and snippets.

@proofek
Created February 26, 2013 16:36
Show Gist options
  • Save proofek/5039915 to your computer and use it in GitHub Desktop.
Save proofek/5039915 to your computer and use it in GitHub Desktop.
php tools install using php cookbook
include_recipe "php::#{node['php']['install_method']}"
channels = %w{pear.phpunit.de components.ez.no pear.symfony-project.com pear.symfony.com pear.pdepend.org pear.phpmd.org}
channels.each do |chan|
php_pear_channel chan do
action [:discover, :update]
end
end
packages = %w{PHP_CodeSniffer phpunit/PHPUnit pdepend/pdepend phpmd/PHP_PMD}
packages.each do |package|
php_pear package do
action [:install]
end
end
php_pear "xdebug" do
# Specify that xdebug.so must be loaded as a zend extension
zend_extensions ['xdebug.so']
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment