You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,26 @@ For more information on this site setup and using Composer to manage a whole Wor
16
16
### Usage
17
17
To set up a custom WordPress build package to use this as a custom installer, add the following to your package's composer file:
18
18
19
-
```
19
+
```json
20
20
"type": "wordpress-core",
21
21
"require": {
22
-
"roots/wordpress-core-installer": "^1.0"
22
+
"roots/wordpress-core-installer": "^2.0"
23
23
}
24
24
```
25
25
26
+
If you need to maintain support for PHP versions lower than 5.6 (not recommended!), use `^1.0` as your version constraint in the above.
27
+
26
28
By default, this package will install a `wordpress-core` type package in the `wordpress` directory. To change this you can add the following to either your custom WordPress core type package or the root composer package:
27
29
28
-
```
30
+
```json
29
31
"extra": {
30
32
"wordpress-install-dir": "custom/path"
31
33
}
32
34
```
33
35
34
36
The root composer package can also declare custom paths as an object keyed by package name:
35
37
36
-
```
38
+
```json
37
39
"extra": {
38
40
"wordpress-install-dir": {
39
41
"wordpress/wordpress": "wordpress",
@@ -44,3 +46,16 @@ The root composer package can also declare custom paths as an object keyed by pa
44
46
45
47
### License
46
48
This is licensed under the GPL version 2 or later.
49
+
50
+
### Changelog
51
+
52
+
##### 2.0.0
53
+
- Added support for Composer v2. Special thanks to @Ayesh for the original pull request to add this support.
54
+
- Bumped minimum required PHP version to 5.6 (same as WP). If you need to stick with an older PHP version, you're probably ok with also sticking with an older version of Composer and can continue to use `^1.0` as your version constraint.
55
+
- Other various fixes and improvements to README, tests, etc.
56
+
57
+
##### 1.0.0
58
+
- Initial stable release
59
+
- Added tests and CI
60
+
- Support added for custom vendor directories
61
+
- Added sanity check for overwriting sensitive directories
0 commit comments