- not using Bedrock
- you understand the risks of dependency version conflicts
- plugin main file is loading
vendor/autoload.php
// The main plugin file.
/**
* Plugin Name: My Plugin
* some other plugin headers...
*/
// some lines of code...
// These 3 lines are important!
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
// some lines of code...
- go to the repo on github.com
- navigate to the specific commit or tag
- download the zip file, see: github-zip.jpg
- unzip it on your computer
- rename the folder name to match the plugin name
$ composer install --no-dev --prefer-dist --optimize-autoloader --no-suggest
- zip it
- done
- this is the last resort
- not always work
- your computer's PHP version should match the remote server one
On macOS:
Normal zipping doesn't work!
Use:
$ zip -r -X myplugin-1.2.3.zip my-plugin