New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

agilo/wp-package-installer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agilo/wp-package-installer

composer-plugin
Source
Packagist
Version
0.6.0
Version published
Total downloads
982
Maintainers
1
Created
Source

README

(WIP) Enables installing WP plugins via Composer 2 (or Composer 1) inside johnpbloch/wordpress. Replaces drupal-composer/preserve-paths.

  • PHP 7.2 - 8.3 is supported
  • Composer 1 & 2 is supported

Installation / Usage

  • mkdir your-project && cd your-project
  • composer init
  • Add the following to your composer.json extra section:
{
  "extra": {
    "wordpress-install-dir": "public",
    "installer-paths": {
      "vendor-wp/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
      "vendor-wp/wp-content/themes/{$name}/": ["type:wordpress-theme"],
      "vendor-wp/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
      "vendor-wp/wp-content/{$name}/": ["type:wordpress-dropin"]
    },
    "agilo-wp-package-installer": {
      "sources": {
        "third-party": {
          "src": "vendor-wp",
          "dest": "public",
          "mode": "symlink"
        }
      }
    }
  }
}
  • composer require agilo/wp-package-installer
  • composer require johnpbloch/wordpress

Contributing

Formatting code

  • Run composer install --working-dir=tools/php-cs-fixer
  • Run ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix

Running tests

  • Run composer install --working-dir=tools/phpunit
  • Run ./tools/phpunit/vendor/bin/phpunit

FAQs

Package last updated on 10 Sep 2023

Related posts