Download the PHP package drevops/phpcs-standard without Composer

On this page you can find all versions of the php package drevops/phpcs-standard. 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 phpcs-standard

DrevOps PHP_CodeSniffer Standard

[![GitHub Issues](https://img.shields.io/github/issues/drevops/phpcs-standard.svg)](https://github.com/drevops/phpcs-standard/issues) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr/drevops/phpcs-standard.svg)](https://github.com/drevops/phpcs-standard/pulls) [![Test PHP](https://github.com/drevops/phpcs-standard/actions/workflows/test-php.yml/badge.svg)](https://github.com/drevops/phpcs-standard/actions/workflows/test-php.yml) [![codecov](https://codecov.io/gh/drevops/phpcs-standard/graph/badge.svg?token=7WEB1IXBYT)](https://codecov.io/gh/drevops/phpcs-standard) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/drevops/phpcs-standard) ![LICENSE](https://img.shields.io/github/license/drevops/phpcs-standard) ![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=renovatebot) [![Vortex Ecosystem](https://img.shields.io/badge/%F0%9F%8C%80-Vortex%20Ecosystem-2C5A68?style=for-the-badge&labelColor=65ACBC)](https://github.com/drevops/vortex)

PHP_CodeSniffer standard enforcing:

Installation

The standard is automatically registered via phpcodesniffer-composer-installer.

Verify: vendor/bin/phpcs -i (should list DrevOps)

Usage

Configuration

Create phpcs.xml:

Use individual sniffs:

Configure naming convention

By default, both sniffs enforce snakeCase. Configure to use camelCase:

LocalVariableNaming

Enforces consistent naming convention for local variables inside functions/methods.

With snakeCase (default):

With camelCase:

Excludes:

Error codes

Ignore

ParameterNaming

Enforces consistent naming convention for function/method parameters.

With snakeCase (default):

With camelCase:

Excludes:

Error codes

Ignore

DataProviderPrefix

Enforces consistent naming prefix for PHPUnit data provider methods.

Configuration

Customize the required prefix:

Error code

DrevOps.TestingPractices.DataProviderPrefix.InvalidPrefix

Ignore

Auto-fixing

This sniff supports auto-fixing with phpcbf:

DataProviderMatchesTestName

Ensures data provider method names match their test method names.

Supported formats:

Excludes:

Error code

DrevOps.TestingPractices.DataProviderMatchesTestName.InvalidProviderName

Ignore

DataProviderOrder

Enforces structural organization of test and data provider methods.

Helper methods between tests and providers are allowed:

Configuration

Reverse the ordering (provider before test):

Options:

Error codes

Ignore

Development

License

GPL-3.0-or-later


This repository was created using the Scaffold project template


All versions of phpcs-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
dealerdirect/phpcodesniffer-composer-installer Version ^1
squizlabs/php_codesniffer Version ^3.10 || ^4
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 drevops/phpcs-standard contains the following files

Loading the files please wait ...