presslabs / stack-mu-plugin
WordPress must-use plugin for Stack
Installs: 5 628
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 4
Open Issues: 2
Type:wordpress-muplugin
Requires
- composer/installers: ~1.9
- google/auth: ^1.9.0
- google/cloud-storage: ^1.21
- oscarotero/env: ^2.1
- promphp/prometheus_client_php: ^2.1
- vlucas/phpdotenv: >=4.1.8 <6
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ~0.6.2
- phpunit/phpunit: ^6.5
- roave/security-advisories: dev-master
- roots/wordpress: ^5.6
- roots/wp-config: 1.0.0
- squizlabs/php_codesniffer: ^3.5.5
- wp-coding-standards/wpcs: ~2.3.0
- wpackagist-plugin/debug-bar: ^1.0
- wpackagist-plugin/debug-bar-console: ^0.3.0
- wpackagist-plugin/debug-bar-constants: ^2.0
This package is auto-updated.
Last update: 2022-01-06 22:10:40 UTC
README
Presslabs Stack must use plugin for WordPress.
It provides integration for Presslabs Stack functionalities with WordPress, such as:
- uploading and serving media files from object storage systems such as Google Cloud Storage or AWS S3
- object-cache implementation on top of memcached
Install
Bedrock
When using bedrock, just run:
$ composer require presslabs/stack-mu-plugin
WordPress plugin
To run as WordPress classic mu-plugin, download the plugin archive from
https://github.com/presslabs/stack-mu-plugin/releases
and extract it into your wp-content/mu-plugins
folder.
Then you need to activate the mu-plugin, by copying stack-mu-plugin.php
from
wp-content/mu-plugins/stakc-mu-plugin
into your wp-content/mu-plugins
folder.
$ cp wp-content/mu-plugins/stack-mu-plugin/stack-mu-plugin.php wp-content/mu-plugins/
WordPress Object Cache
In order to use the custom object cache, you'll need to copy it into the root of
WP_CONTENT_DIR
(usually wp-content
).
$ cp wp-content/mu-plugins/stack-mu-plugin/src/object-cache.php wp-content/
Development
Clone this repository, copy .env.example
to .env
and edit it accordingly.
To install dependencies just run
$ make dependencies
Development server
To start a local development server you need wp-cli installed. To start the development server, just run
$ wp server
Testing
Running plugin tests:
$ make test-runtime
Running integration tests:
$ make test-runtime