Download the PHP package wpengine/wpengine-coding-standards without Composer

On this page you can find all versions of the php package wpengine/wpengine-coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wpengine-coding-standards

Deprecation Notice

This project is no longer actively maintained. We recommend using the WordPress Coding Standards and use their recommended configuration for your project.

About

WP Engine Coding Standards for WordPress

If WordPress Coding Standards offer a baseline for developers to use when contributing to or extending WordPress, think of WP Engine Coding Standards as an additional layer of best practices that:

The information included here walks you through the process of installing and using WP Engine Coding Standards to lint your code.

Requirements

WP Engine Coding Standards (WPECS) uses Composer to install these main dependencies:

If you're using Homebrew on Mac, you can install Composer with: brew install composer. Otherwise, follow the official installation instructions for Composer.

Installation

Global installation

  1. Clone the repository and install the dependencies:

  2. Link your coding standards to your phpcs installation:

Install as a dependency

You can also install the coding standards as a dependency in your local project. Here's how

  1. Add the following repository to your composer.json

  2. Manually add the following to require-dev in composer.json

  3. Run composer install or composer update to ensure your project is configured.

  4. You can now use WP-Engine or WP-Engine-Strict in any IDE that uses the local phpcs. If you already have a phpcs.xml in your project, simply add the following to it:

Alternative Install (wpecs command)

Clone or download this repository. From terminal, navigate to the download location and install WPECS globally with the following command:

make install

You will then be able to run WPECS from any directory.

Running make install will install WPECS dependencies and register coding standards with PHPCS.

Usage

Command line

Run the phpcs command line tool on a given file or directory, for example:

WP-Engine Coding Standard

The required standard for secure WordPress development.

wpecs .

WP-Engine-Strict Coding Standard

The recommend standard for WP Engine authored plugins.

wpecs --standard="WP-Engine-Strict" .

Using PHPCS and WP Engine Coding Standards from within your IDE

While the following is based on the parent WordPress Coding Standards, simply swap out the ruleset you need for WP-Engine or WP-Engine-Strict as appropriate.

Alternative usage (wpecs)

USAGE: wpecs [--strict] [phpcs-options]

Run the specified path against the WP Engine Coding Standards Attempt to fix sniffs against the WP Engine Strict Coding Standards ## Results For help understanding errors or warnings and suggestions for troubleshooting specific issues, please refer to the full [WP Engine Coding Standards Documentation](https://github.com/wpengine/wpengine-coding-standards/wiki). ### Contributor License Agreement All external contributors to WP Engine products must have a signed Contributor License Agreement (CLA) in place before the contribution may be accepted into any WP Engine codebase. 1. [Submit your name and email](https://wpeng.in/cla/) 2. 📝 Sign the CLA emailed to you 3. 📥 Receive copy of signed CLA ❤️ Thank you for helping us fulfill our legal obligations in order to continue empowering builders through headless WordPress.

All versions of wpengine-coding-standards with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wpengine/wpengine-coding-standards contains the following files

Loading the files please wait ....