-
Notifications
You must be signed in to change notification settings - Fork 316
WordPress Plugins Themes
Find your plugin in the official wordpress plugin directory. Now select a plugin of your choice, you will be visit a page like "https://wordpress.org/plugins/akismet/". Now you can take the part "akisment" and search in the WPackagist Repository.
Now you need to select the matching plugin and note down the latest version.
Now you need to add one row in the require section of the file composer.json. You need to run "composer update" after changing the composer.json. For more information about composer visit this link.
```json
"require": {
...
"wpackagist-plugin/akismet": "3.2"
...
}
Now you need to designate the resource type. In the composer.json in the section "extra/installer-paths" you can select between three types.
- web/app/mu-plugins/{$name}/ - must use plugins that can't be disabled.
- web/app/plugins/{$name}/ - regular plugins that need to be enabled in the admin interface.
- web/app/themes/{$name}/ - themes of your wordpress instance.
There you would add akismet as a regular plugin, which could look like this:
"web/app/plugins/{$name}/": [
"type:wordpress-plugin",
"wpackagist-plugin/akismet"
],
Please never delete the first line "type:..." within those sections.
TODO
Find your plugin in the official wordpress theme directory. Now select a theme of your choice, you will be visit a page like "https://wordpress.org/themes/nucleare/". Now you can take the part "nucleare" and search in the WPackagist Repository.
Now you need to select the matching plugin and note down the latest version.
Now you need to add one row in the require section of the file composer.json. You need to run "composer update" after changing the composer.json. For more information about composer visit this link.
"require": {
...
"wpackagist-theme/nucleare": "1.4.7"
...
}
Now you need to designate the resource type. In the composer.json in the section "extra/installer-paths" you can select between three types.
In this case you need to add your theme in the "web/app/themes/{$name}/" section. This would look like this:
"web/app/themes/{$name}/": [
"type:wordpress-theme",
"wpackagist-theme/nucleare"
],
Please never delete the first line "type:..." within those sections.
TODO