The PHP Configuration Tool was built as a simple script to make it easier to
configure multiple PHP installations on a Windows machine quickly. The purpose
is to allow defining a simple configuration file that is used to configure
multiple different php.ini files in different PHP installation paths., (*1)
Installation
To install this library globally via Composer, simply
run the following command, (*2)
> composer global require riimu/php-configure:1.*
Configuration
See the included configure.sample.json file for a sample configuration. The
included php-configure command takes a single parameter, which indicates the
configuration json file. For example:, (*3)
> php-configure configure configure.json
The configuration may include the following settings:, (*4)
-
paths defines the paths to PHP installations. The paths are iterated
using
glob() which allows the user of path wildcards.
-
base defines the base configuration files that are searched for in the
installation directory, if the php.ini does not exist
-
settings defines the configured PHP settings.
-
extensions defines the PHP extensions to enable
The configuration script will only change the setting values if they are
different and only enable the extensions if they are not enabled in the php.ini
file. Note that if the setting or extension does not exist in the configuration
file in either uncommented or commented form, the settings are not configured
and the extensions are not enabled., (*5)
Credits
This project is copyright 2015 to Riikka KalliomÀki., (*6)
See LICENSE for license and copying information., (*7)