Skip to content


Repository files navigation

WordPress Packagist

This is the repository for which allows WordPress plugins and themes to be managed along with other dependencies using Composer.

More info and usage instructions at or follow us on Twitter @wpackagist.

For support and discussion, please use the issue tracker above.


Example composer.json:

    "name": "acme/brilliant-wordpress-site",
    "description": "My brilliant WordPress site",
            "only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
    "require": {
    "autoload": {
        "psr-0": {
            "Acme": "src/"

WordPress core

This does not provide WordPress itself.

See or

How it works

WPackagist implements the wordpress-plugin and wordpress-theme Composer Installers (

It essentially provides a lookup table from package (theme or plugin) name to SVN repository. Versions correspond to different tags in their repository, with the special dev-trunk version being mapped to trunk.

Note that to maintain Composer v1 compatibility (as well as v2) for dev- versions, for now we need to use the VersionParser from composer/composer v1.x and not a newer release branch. Correct resolution of these depends on the legacy behaviour where dev-trunk et al. correspond to


The lookup table is provided as a hierarchy of static JSON files. The entry point to these files can be found at, which consists of a series of sub-tables (each as its own JSON file). These sub-tables are grouped by last commit date (trying to keep them roughly the same size), and contain references to individual packages. Each package has its own JSON file detailing its versions; these can be found in{theme|plugin}/{package-name-and-hash}.json.

Version format limitations

Currently, Wpackagist can only process packages with up to 4 parts in their version numbers, in line with the internal handling of Composer v1.x.

Running Wpackagist


  1. Make sure you have Composer dependencies installed, including extensions.
  2. Make .env.local, overriding anything you want to from .env.
  3. (Only if you're going to skip using a database for PackageStore): ensure sure your PACKAGE_PATH directory is writable.
  4. Run composer install to install dependencies.
  5. Populate the database and package files (see steps below).
  6. Point your Web server to web. A .htaccess is provided for Apache.

Updating the database

The first database population may easily take hours. Be patient.

  1. bin/console doctrine:migrations:migrate: Ensure the database schema is up to date with the code.
  2. bin/console refresh: Query the SVN in order to find new and updated packages.
  3. bin/console update: Update the version information for packages identified in 2. Uses the API.
  4. bin/console build: Rebuild all PackageStore data.

Running locally with Docker

This may be simpler than setting up native dependencies, but is experimental.

To prepare environment variables:

cp .env .env.local

and edit as necessary.

To set up and update the database:

docker-compose run --rm cron composer install
docker-compose run --rm cron deploy/
docker-compose run --rm cron

To start a web server on localhost:30100:

docker-compose up web adminer


Live deployments

CircleCI is used to deploy the live app on ECS.

Automatic deploys run:

See .circleci/config.yml for full configuration.