# Class: php
#
#   This class installs php.
#
# Parameters:
#
# Actions:
#
# Requires:
#
#   apache
#
# Sample Usage:
#
#   include php
#
class php {

  include apache

  package { 'php':
    ensure  => installed,
    require => Package['apache'],
    notify  => Service['apache']
  }

  file { '/etc/php.d/error_reporting.ini':
    content => template('php/error_reporting.ini.erb'),
    require => Package['php'],
    notify  => Service['apache']
  }

  file { '/etc/php.d/xdebug_settings.ini':
    content => template('php/xdebug_settings.ini.erb'),
    require => Package['php'],
    notify  => Service['apache']
  }
}
