Dev
Composer
Blockstudio is available as a Composer package. This is the recommended way to install it in managed WordPress projects.
Installation
composer require blockstudio/blockstudioThe package is published on Packagist.
Embedding in Plugins and Themes
Blockstudio is fully namespaced and uses a singleton pattern, so it can be safely embedded within other plugins or themes without class name collisions. If you are building a plugin or theme that bundles Blockstudio, require it in your project's composer.json:
{
"name": "my-company/my-plugin",
"require": {
"blockstudio/blockstudio": "^7.0"
}
}The singleton pattern ensures only one instance runs, even if multiple plugins bundle Blockstudio. Namespacing prevents conflicts with other libraries in the WordPress environment.