# PHP Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`
* `homebrew`
* `wget`
* `autoconf`
* `libtool`

Currently 5.3.x versions of PHP are not building due to a dependence on a lower version of autoconf which is not provided by brew. This is being worked on.

## Usage

```puppet
# Install PHP and set as the global default php
class { 'php::global': version => '5.4.10' }

# ensure a certain php version is used within a dir
php::local { '/path/to/my/awesome/project':
  version => '5.4.9'
}

# install a php version or two
php::version { '5.3.20': }
php::version { '5.4.10': }

# we provide a ton of predefined ones for you though
require php::5-4-10
require php::5-3-17

# Set up PHP-FPM to run a specific version of PHP
php::fpm { '5.4.10': }

# Spin up an FPM pool for a project
# Ensures:
#  * the version of PHP is installed
#  * a PHP-FPM service is configured for this PHP version
#  * a FPM pool is listening on a per project nginx socket
$name = "project-name"
php::fpm::pool { "${name}-5.4.10":
  version => 5.4.10,
  socket  => "${boxen::config::socketdir}/${name}",
  require => File["${nginx::config::sitesdir}/${name}.conf"],
}

```

# PHP Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`
* `homebrew`
* `wget`
* `autoconf`
* `libtool`

## Usage

```puppet
# Install PHP and set as the global default php
class { 'php::global': version => '5.4.10' }

# ensure a certain php version is used within a dir
php::local { '/path/to/my/awesome/project':
  version => '5.4.9'
}

# install a php version or two
php::version { '5.3.20': }
php::version { '5.4.10': }

# we provide a ton of predefined ones for you though
require php::5-4-10
require php::5-3-17

# Set up PHP-FPM to run a specific version of PHP
php::fpm { '5.4.10': }

# Spin up an FPM pool for a project
# Ensures:
#  * the version of PHP is installed
#  * a PHP-FPM service is configured for this PHP version
#  * a FPM pool is listening on a per project nginx socket
$name = "project-name"
php::fpm::pool { "${name}-5.4.10":
  version => 5.4.10,
  socket  => "${boxen::config::socketdir}/${name}",
  require => File["${nginx::config::sitesdir}/${name}.conf"],
}

```

Remove 5.3 caveat from readme as we can compile it again - yay :D
Remove 5.3 caveat from readme as we can compile it again - yay :D
