Syde VIP Composer Plugin
Why Bother
When working with wp.com VIP hosting the way we do deployments is making a push to a GitHub repository in the VIP’s GitHub organization.
That repository represents an artifact of the code we want to put on VIP servers, and thus includes any third party code, output of building tools, and so forth. In a nutshell, it’s like we are using GitHub repository more as a “remote filesystem” than as a real version control repository.
Even if this is better than the plain-old FTP deployments (it’s still git, we can see history, revert, fork…) it is also not ideal, for a development point of view, to mix in the same repository first and third part code, built outputs, etc.
Moreover, modern WordPress development can’t ignore Composer exists, and that the best way to handle Composer in WordPress is as “website level” and not in single plugins/themes.
The problem this package aims at solving is: enable “website projects” Composer packages that can be used for development, while also being suitable for local development environments and, at the same time, to deploy to VIP.
Documentation (v3)
- Getting Started
- Environment Initialization
- VIP Local Development Environment
- Custom Local Development Environment
- The
composer vip
Command - Plugin Configuration
- Website Configuration
- Application Helpers
- Application MU Plugins
- Managing Dev Paths
- WP and MU Plugins command flags
- Sunrise Configuration
- Disable 2FA for Automated Tests
Dependencies and Minimum Requirements
The plugin requires PHP 8.0+ and Composer 2.4+.
There are no more production dependencies. When installed as root package with dev dependencies, this package directly requires:
- Brain Monkey (MIT)
- Composer (MIT)
- Inpsyde PHP Coding Standards (MIT)
- Inpsyde WP Stubs (MIT)
- PHPUnit (BSD-3 Clause)
- Psalm (MIT)
License and Copyright
VIP Composer Plugin is a free software, and is released under the terms of the MIT license. See LICENSE for complete license.
The team at Syde is engineering the Web since 2006.