Development

Laps is light profiler plugin for WordPress. It was developed exclusively as Composer package.

classmap autoload type is used for classes, since files adhere to WordPress naming convention and need to be handled by static scan on install.

Stopwatch component from Symfony framework and PHP port of mustache templating language are required as Composer dependencies and used for timing events and templating output respectively.

Composer package for Twitter Bootstrap is required as development dependency to make use of importing styles and scripts from its source.

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

composer.json

{
    "name"       : "rarst/laps",
    "description": "Light WordPress profiler.",
    "keywords"   : ["wordpress", "performance"],
    "type"       : "wordpress-plugin",
    "homepage"   : "https://github.com/Rarst/laps",
    "license"    : "MIT",
    "authors"    : [
        {
            "name"    : "Andrey Savchenko",
            "email"   : "contact@rarst.net",
            "homepage": "http://www.Rarst.net/"
        }
    ],
    "support"    : {
        "issues": "https://github.com/Rarst/laps/issues"
    },
    "autoload"   : {
        "classmap": ["src/"]
    },
    "require"    : {
        "composer/installers": "~1.0",
        "symfony/stopwatch"  : "~2.4",
        "mustache/mustache"  : "~2.4"
    },
    "require-dev": {
        "twbs/bootstrap": "~3.2"
    }
}

Documentation Links