This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

0.3.0 2018-12-04 13:05 UTC

This package is auto-updated.

Last update: 2021-10-04 20:10:42 UTC


Latest Stable Version License

ClassicPress composer boilerplate

This boilerplate shows the minimal steps required to start a composer project based on ClassicPress.

Default dependencies are ClassicPress core last release and Twenty Seventeen theme.



  1. Run in command line : composer create-project --remove-vcs pierre-dargham/classicpress-composer-boilerplate my-project
  2. Create an empty database
  3. In wp-config.php, edit following constants : WP_HOME, DB_NAME, DB_USER, DB_PASSWORD, DB_HOST
  4. Go to your site home url, and follow standard ClassicPress install steps

Note: Your site administration area will be available at /classicpress/wp-admin/ instead of /wp-admin/

Further steps


If you are using a VCS, like git or svn, you should ignore those files :

- /vendor
- /classicpress
- /wp-content/themes/twentyseventeen

WordPress plugins and theme

You can install and manage WordPress plugins and theme using composer, thanks to composer miror repository wpackagist. If you require WordPress plugins and theme using composer, you should ignore them in your VCS also, like any other dependency.

Automatic updates

Automatic updates are disabled by default in this boilerplate wp-config.php, because your dependencies updates should be handled using Composer. If you need to change that, you can modify the two following constants :

/* Automatic updates */
define('WP_AUTO_UPDATE_CORE', false);

Nightly builds

If you want to install ClassicPress nightly builds instead of stable releases, you can modify the composer.json file :

  • Add "minimum-stability" :"dev"
  • Add the following repository : "type": "vcs", "url": "ssh://git@github.com/ClassyBot/ClassicPress-nightly.git"

You should now have a section like that :

"minimum-stability" :"dev",
"repositories": [
        "type": "composer",
        "url": "https://wpackagist.org"
        "type": "vcs",
        "url": "ssh://git@github.com/ClassyBot/ClassicPress-nightly.git"
  • Run composer update classicpress/classicpress to install the last nightly build

Related links