Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fancyguy/composer-wordpress-plugin
Installers and repositories for wordpress packages.
https://github.com/fancyguy/composer-wordpress-plugin
composer composer-installer composer-plugin php wordpress
Last synced: about 1 month ago
JSON representation
Installers and repositories for wordpress packages.
- Host: GitHub
- URL: https://github.com/fancyguy/composer-wordpress-plugin
- Owner: fancyguy
- Created: 2015-02-06T14:50:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T20:33:31.000Z (over 6 years ago)
- Last Synced: 2024-04-26T18:21:35.191Z (8 months ago)
- Topics: composer, composer-installer, composer-plugin, php, wordpress
- Language: PHP
- Size: 48.8 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A [Composer](http://getcomposer.org) Plugin for [WordPress](http://wordpress.org) Development
[![Build Status](http://img.shields.io/travis/fancyguy/composer-wordpress-plugin.svg)](http://travis-ci.org/fancyguy/composer-wordpress-plugin)
This is a Composer plugin to add WordPress packages from the SVN repository.
## Getting Started
This plugin needs to be globally installed in order to initialize the repositories early enough.
```
composer global require fancyguy/composer-wordpress-plugin
```## Repositories
**WordPressCoreRepository** - This provides the `wordpress/wordpress` package from SVN as a source install and from the API as a dist install.
**WordPressThemeRepository** - This exposes themes on wordpress.org as `wordpress-theme/*` from the SVN for source or the API for dist.
**WordPressPluginRepository** - This exposes plugins on wordpress.org as `wordpress-plugin/*` from the SVN for source or the API for dist.
## Installers
**CoreInstaller** - This installs the `wordpress-core` package, writes `wp-config.php` and generates salts.
**ThemeInstaller** - This installs `wordpress-theme` packages into the configured theme directory.
**PluginInstaller** - This installs the `wordpress-plugin` packages into the configured plugin directory.
## Configuration
The installers use the following default configuration to define the corresponding constants in `wp-config.php`
```json
{
"extra": {
"wordpress": {
"webroot": "wordpress",
"content-path": "wp-content",
"themes-path": "${contentPath}/themes",
"plugins-path": "${contentPath}/plugins",
"mu-plugins-path": "${contentPath}/mu-plugins"
}
}
}
```