Composer turns manual plugin drops into wp-content/ into a versioned, reproducible setup. Start the project with Bedrock, pull free plugins like WooCommerce and Flexible Shipping via WPackagist, and fetch PRO plugins from the private composer.octolize.dev repo using a bearer token generated from your Master API key. From then on, updating the whole stack is one command.
Composer is the standard dependency manager for PHP. Instead of copying plugin folders into wp-content/, you list everything your site relies on in a singlecomposer.json. One command (composer install or composer update) then pulls the exact versions, places them in predictable locations, and records them in a lock-file so that every environment (local, CI, production) stays in sync.
On the other hand, you can learn about traditional way of installing a WordPress plugin in How to Install a WordPress Plugin – Guidelines for Beginners.
Bedrock is by far the most comprehensive, so the walkthrough below uses it.
composer create-project roots/bedrock my-site.env.example to .env, then fill in DB_…, WP_HOME, WP_SITEURL, and salts.web/ directory.https://example.test/wp/wp-admin and run the normal WordPress installer.The easiest way to pull anything that lives on WordPress.org is WPackagist – a Composer mirror of the plugin directory.
{
"repositories": [
{ "type": "composer", "url": "https://wpackagist.org" }
]
}
composer require \
wpackagist-plugin/woocommerce:^9.0 \
wpackagist-plugin/flexible-shipping:^5.0
woocommerce gives you the full shop suite, while flexible-shipping (by Octolize) adds powerful table-rate rules – all free on WordPress.org.Premium Octolize extensions – e.g. Flexible Shipping PRO – are distributed from a private Composer repository at
https://composer.octolize.dev. Access is secured by a bearer-token (your personal API key).
# Tell Composer where the private repo lives
auth_host="composer.octolize.dev"
composer config repositories.octolize/plugins composer "https://${auth_host}"
# Store your key in global auth.json (do this on every machine/CI runner)
composer config --global --auth "bearer.${auth_host}" YOUR_MASTER_API_KEY_HERE
auth.json instead.composer require octolize-plugin/flexible-shipping-pro
All Octolize premium packages share the octolize-plugin/* namespace, so future updates are as simple as:
composer update octolize-plugin/*
Whether you run a tiny blog or a multi-store WooCommerce installation, adopting Composer today means safer updates, cleaner repos, and deployments that “just work.” Happy coding!
You can add Composer to a running site, but you can’t retrofit Bedrock’s structure without a migration. The pragmatic path is johnpbloch/wordpress-core or fancyguy/webroot-installer, which keep vanilla paths or manage only plugins and themes with Composer at first and leave core alone.
No. Your Master API key covers the subscriptions on your account, so one key works across all octolize-plugin/* packages you have access to. Treat it like a password: store it in a machine-local auth.json or an environment variable, never in your repository.
They shouldn’t. Once a plugin is a Composer dependency, updating it through wp-admin overwrites the version your lock-file expects and gets reverted on the next deploy. Disable admin updates and run composer update instead so your repository stays the single source of truth.
Add the Octolize repository to composer.json (it’s committed) and inject the bearer token as a secret environment variable on the runner: COMPOSER_AUTH='{"bearer":{"composer.octolize.dev":"YOUR_KEY"}}'. That avoids writing a global auth.json on ephemeral build machines.
Only where they come from. The free version is on WordPress.org, so it installs via WPackagist as wpackagist-plugin/flexible-shipping. PRO comes from Octolize’s private repository as octolize-plugin/flexible-shipping-pro and requires an active subscription plus your API key.
Learn how Octolize helped Kurzgesagt, the online shop behind one of YouTube’s most popular science channels, set up conditional courier rules using the Shopify Shipping Rates Rules & Zones app.
Learn how Octolize solutions helped WooCommerce store based in the United Kingdom set up shipping scenarios.
Learn how Octolize helped Shopify store based in the USA set up distance based rates with a usage of Octolize Distance Based Rates.