2017 © Pedro Peláez
 

composer-plugin composer-for-wordpress

image

dangoodman/composer-for-wordpress

  • Wednesday, June 20, 2018
  • by dangoodman
  • Repository
  • 1 Watchers
  • 6 Stars
  • 608 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Composer for WordPress

A plugin for Composer package manager making it working a bit better for WordPress plugins., (*1)

For now, the only purpose of the project is to fix the following error when there is a WordPress plugin built with an obsolete pre-PSR-4 Composer version:, (*2)

Fatal error: Call to undefined method Composer\Autoload\ClassLoader::setPsr4()
in <...>/wp-content/plugins/<plugin-name>/vendor/composer/autoload_real.php on line 33

The plugin patches Composer's autoload scripts every time they are changed due to composer install, composer update, or other Composer actions., (*3)

More info and discussion, (*4)

Installation

Require the package in your project's composer.json:, (*5)

{
    "require-dev": {
        "dangoodman/composer-for-wordpress": "^2.0"
    }
}

To set a custom class loader suffix add to your composer.json:, (*6)

{
    "config": {
        "classloader-suffix": "MySuffix"
    }
}

If it's not set, a random suffix will be generated instead., (*7)

The Versions

20/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

  • composer-plugin-api ^1.0

 

20/06 2018

2.0.0

2.0.0.0

  Sources   Download

The Requires

  • composer-plugin-api ^1.0

 

30/06 2016

1.0.2

1.0.2.0

  Sources   Download

The Requires

  • composer-plugin-api ^1.0

 

23/05 2016

1.0.1

1.0.1.0

  Sources   Download

The Requires

  • composer-plugin-api ^1.0

 

20/01 2016

1.0.0

1.0.0.0

  Sources   Download

The Requires

  • composer-plugin-api ^1.0