Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dummy-team/wp-installer-composer-scripts
Scripts for Wordpress installer
https://github.com/dummy-team/wp-installer-composer-scripts
Last synced: 11 days ago
JSON representation
Scripts for Wordpress installer
- Host: GitHub
- URL: https://github.com/dummy-team/wp-installer-composer-scripts
- Owner: dummy-team
- License: mit
- Created: 2015-09-20T20:39:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-26T12:59:55.000Z (about 9 years ago)
- Last Synced: 2024-11-16T05:41:42.740Z (about 1 month ago)
- Language: PHP
- Size: 181 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Wordpress installer - composer scripts
Thoses scripts are used in [wp-installer package]([email protected]:dummy-team/wp-installer.git) and can be called after composers events (create-project, install and update)## Installation
Install [composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) and require this package```
composer require dummy-team/wp-installer-composer-scripts
```
You have to set some parameters in the *extra* block of your composer.json to allow scripts to access your files
```
"extra": {
"dummyteam-parameters": {
"parameter-file": "web/wp/wp-config-sample.php",
"destination-folder": "web/"
}
}
```
- **parameter-file (required):** the path to the *wp-config-sample.php* file of the default Wordpress install
- **destination-folder (optional):** destination folder for your final *wp-config.php* and *wp-config.php.dist* files## Scripts
### Build parameters
This script build your *wp-config.php* and *wp-config.php.dist*, find all parameters set in the dist file and ask the value required for your local version.
#### How to use it
Add those lines to your *composer.json*
```
"scripts": {
"post-install-cmd": [
"DummyTeam\\WpInstallerComposerScripts\\Parameters::build"
],
"post-update-cmd": [
"DummyTeam\\WpInstallerComposerScripts\\Parameters::build"
]
}
```
The next time, you'll execute `composer install`, `composer update` or `composer create-project ...` the script will parse your configuration### Prepare Git
Add those lines to your *composer.json*
```
"scripts": {
"post-create-project-cmd": [
"DummyTeam\\WpInstallerComposerScripts\\Git::build"
]
}
```
The next time, you'll execute `composer create-project ...` the script will parse your configuration### Prepare structure
Add those lines to your *composer.json*
```
"scripts": {
"post-create-project-cmd": [
"DummyTeam\\WpInstallerComposerScripts\\Structure::build"
]
}
```
The next time, you'll execute `composer create-project ...` the script will parse your configuration