Download the PHP package lifterlms/lifterlms-cs without Composer
On this page you can find all versions of the php package lifterlms/lifterlms-cs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lifterlms/lifterlms-cs
More information about lifterlms/lifterlms-cs
Files in lifterlms/lifterlms-cs
Package lifterlms-cs
Short Description PHP_CodeSniffer rules for LifterLMS projects
License MIT
Informations about the package lifterlms-cs
LifterLMS Coding Standards
LifterLMS Coding Standards (LifterLMS-CS) is a project with rulesets for code style and quality intended for use in LifterLMS projects.
Installation
To include in a project require as a development dependency:
composer require lifterlms/lifterlms-cs:dev-trunk --dev
If you are upgrading from the old version, be sure to remove any references to manually setting the installed_paths
as they are now automatically set by Composer.
Using PHPCS & PHPCBF
Access the PHPCS execultable via: ./vendor/bin/phpcs
Check for errors only: ./vendor/bin/phpcs --error-severity=1 --warning-severity=6
Fix errors via PHPCBF: ./vendor/bin/phpcbf
Predefined scripts
The following scripts can be added to your composer.json
file for easy access to thes scripts & to ensure configurations are automatically set during package installation and updates.
Developing LifterLMS-CS
To include in a project and make changes to the LifterLMS-CS project itself:
Add to your composer.json
file with the @dev
tag and reference your local copy of this repository in the repositories block:
All versions of lifterlms-cs with dependencies
squizlabs/php_codesniffer Version ^3.3.2
wp-coding-standards/wpcs Version ^1.1.0
phpcompatibility/phpcompatibility-wp Version ^2.0.0
phpmd/phpmd Version ^2.6.0