Download the PHP package mtwango/wordpress-plugin without Composer
On this page you can find all versions of the php package mtwango/wordpress-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mtwango/wordpress-plugin
More information about mtwango/wordpress-plugin
Files in mtwango/wordpress-plugin
Package wordpress-plugin
Short Description Composer Plugin for Wordpress sites
License MIT
Informations about the package wordpress-plugin
WordPress Composer Plugin
Composer plugin to symlink paths to create Composer based WordPress installation.
Install / update
To install / update the latest stable version of this component, open a console and execute the following command:
Includes
This plugin will also require for you the following packages:
- composer/installers:^2.2
- cweagans/composer-patches:^1.7
Usage
Configuration
WordPress' plugins and themes repository must be defined:
Plugin default values (AKA you don't need to add these if not overriding):
.gitignore
This plugin has example .gitignore
included in assets
folder, which ignores WordPress Core and by default
all plugins. There is an example how to exclude custom plugins from .gitignore
. You are free to copy it to your
webroot or modify it and have it elsewhere.
Symlinking
Create the symlinks to extra.wordpress-plugin.symlinks
section.
- Set
symlinks-skip-missing-target
to true if we should not throw exception if target path doesn't exist - Set
symlinks-absolute-path
to true if you want to create realpath symlinks - Set
symlinks-throw-exception
to false if you don't want to break creating on some error while check symlinks - Set
symlinks-force-create
to force unlink link if something already exists on link path
You can set personal configs for any symlink.
For personal configs link
must be defined
WordPress
Core
As WordPress core, it is intended to use package johnpbloch/wordpress-core
Updates
If you want to manage your WordPress core, themes and plugins with Composer, you should disable automatic updates.
You can use plugins to do that, for example Easy Updates Manager.
Or you can either use included plugin composer-plugin-no-updates
(in mu-plugins folder or in plugins folder, if you want to be able to disable it) or following manual configuration:
To disable WordPress Core updates, add following line in your wp-config.php
:
To disable plugin and theme updates, you need to use filters in your theme's functions.php
file:
Testing
Install with dev dependencies:
Run tests from root:
Forked from
This plugin is based on Mona Composer Plugin and modified to be used with WordPress Composer based installations. WordPress Composer Plugin is released under same license.
License
This component is under the MIT license. See the complete license in the LICENSE file.
All versions of wordpress-plugin with dependencies
composer-plugin-api Version ^2.3
composer/installers Version ^2.2
cweagans/composer-patches Version ^1.7