WordPress SEO is one of the most popular WordPress plugins, with long running history of development. While it had basic composer.json for a while, it wasn’t properly functioning since introduction of vendor own’s dependencies via Git submodules.

For new Composer implementation dependencies were converted to Composer packages. Additionally PHP CodeSniffer ruleset, used for unit testing and development, was also converted to package for sharing between projects.

classmap autoload type is used for classes, since files adhere to WordPress naming convention and need to be handled by static scan on install. To retain compatibility to PHP 5.2 environment special loader is required as dependency and run via scripts to generate compatible version.

composer/installers package and wordpress-plugin type are declared for path customization when plugin is installed as part of whole site stack.

scripts are used to automate configuration of coding style and trigger builds of special autoloader.


    "name": "yoast/wordpress-seo",
    "description": "Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the WordPress SEO plugin by Yoast.",
    "keywords": [
    "homepage": "",
    "license": "GPL-2.0+",
    "authors": [
            "name": "Team Yoast",
            "email": "",
            "homepage": ""
    "type": "wordpress-plugin",
    "support": {
        "issues": "",
        "forum": "",
        "wiki": "",
        "source": ""
    "require": {
        "composer/installers": "~1.0",
        "yoast/license-manager": "dev-master",
        "yoast/i18n-module": "dev-master",
        "xrstf/composer-php52": "^1.0.17"
    "require-dev": {
        "yoast/yoastcs": "dev-master"
    "minimum-stability": "dev",
    "autoload": {
        "classmap": [
    "scripts": {
        "config-yoastcs": [
            "\"vendor/bin/phpcs\" --config-set installed_paths ../../../vendor/wp-coding-standards/wpcs,../../../vendor/yoast/yoastcs",
            "\"vendor/bin/phpcs\" --config-set default_standard Yoast"
        "post-install-cmd": [
        "post-update-cmd": [
        "post-autoload-dump": [

Documentation Links