Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoitchantre/wp-composer-auto-updates
WordPress MU-Plugin to enable maintenance and security updates when the site uses version control and DISALLOW_FILE_MODS.
https://github.com/benoitchantre/wp-composer-auto-updates
auto-update security wordpress wordpress-mu-plugin
Last synced: about 2 months ago
JSON representation
WordPress MU-Plugin to enable maintenance and security updates when the site uses version control and DISALLOW_FILE_MODS.
- Host: GitHub
- URL: https://github.com/benoitchantre/wp-composer-auto-updates
- Owner: benoitchantre
- License: gpl-3.0
- Created: 2021-05-02T19:14:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T05:29:29.000Z (9 months ago)
- Last Synced: 2024-04-26T06:27:00.702Z (9 months ago)
- Topics: auto-update, security, wordpress, wordpress-mu-plugin
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Coding Standards](https://github.com/benoitchantre/wp-composer-auto-updates/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/benoitchantre/wp-composer-auto-updates/actions/workflows/coding-standards.yml)
# WP Composer Auto Updates
WordPress MU-Plugin to enable maintenance and security updates when the site uses version control and `DISALLOW_FILE_MODS`.
When `DISALLOW_FILE_MODS` is not set or false, WordPress will behave as if there was no VCS: plugins and themes can be installed or updated from the dashboard.
In this scenario, `composer.lock` will get out of sync. It can be used to hand-off a project to a client.## Installation
This package can be installed in the `mu-plugins` directory with `composer/installers`.
As WordPress only load php files inside `mu-plugins` directory, it needs to be included required by a file or autoloaded using `roots/bedrock-autoloader` or similar solutions.Example of a `composer.json` to manage a WordPress site with Composer:
```json
{
"require": {
"php": ">=7.0",
"benoitchantre/wp-composer-auto-updates": "^1.0",
"composer/installers": "^1.0",
"johnpbloch/wordpress": "^5.5",
"roots/bedrock-autoloader": "^1.0"
},
"extra": {
"wordpress-install-dir": "public/wp",
"installer-paths": {
"public/wp-content/mu-plugins/{$name}": [
"type:wordpress-muplugin"
],
"public/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"public/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
}
}
}
```