WordPress plugin to pluralize all post titles. This plugin is a demo of loading third-party code into a WordPress plugin using Composer.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Pluralize Title - WordPress Plugin

When active this plugin pluralizes all post titles on display. For example: a post titled "Apple", would display as "Apples"

This plugin has little use on its own but is intended as a demonstration of adding third-party code to a plugin using Composer.

Is this Plugin Broken?

When you try to activate this plugin, you may see error messages like

Warning: require(vendor/autoload.php): failed to open stream: No such file or directory


Fatal error: require(): Failed opening required 'vendor/autoload.php'

This is because there is third-party code that is not included in this repository.

How to Load Third-Party Code via Composer

  1. Install Composer, my short version from the command line on a Mac is
    curl -sS https://getcomposer.org/installer | php;mv composer.phar /usr/local/bin/composer
  2. Load the third-party code as defined in composer.json by running
    composer install from the root directory of this plugin

Now the third-party code is added in the directory vendor/ within the plugin along with auto-loading code that the plugin takes advantage of.


This plugin was initially created by Sal Ferrarello (@salcode) as part of his 2015 WordCamp Philly presentation Getting Started with Composer.

You may also want to read Sal's posts on Composer