Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riimu/php-configure
Command line utility for configuring multiple Windows PHP installations
https://github.com/riimu/php-configure
Last synced: about 2 months ago
JSON representation
Command line utility for configuring multiple Windows PHP installations
- Host: GitHub
- URL: https://github.com/riimu/php-configure
- Owner: Riimu
- License: mit
- Created: 2015-12-21T18:33:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T17:45:43.000Z (about 7 years ago)
- Last Synced: 2024-11-29T13:08:43.657Z (about 2 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Configuration Tool #
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.## Installation ##
To install this library globally via [Composer](https://getcomposer.org), simply
run the following command> 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:> php-configure configure configure.json
The configuration may include the following settings:
* **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 enableThe 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.## Credits ##
This project is copyright 2015 to Riikka Kalliomäki.
See LICENSE for license and copying information.