Download the PHP package contao/easy-coding-standard without Composer

On this page you can find all versions of the php package contao/easy-coding-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 easy-coding-standard

EasyCodingStandard configurations for Contao

This package includes the EasyCodingStandard configuration for Contao.

Installation

Add the package to your Contao installation via Composer:

Usage

Create a file named ecs.php in the root directory of your project.

Then run the script like this:

What's inside?

The package contains the following custom fixers:

Class Description
AssertEqualsFixer Replaces asserEquals() with assertSame() in unit tests unless the method is used to compare two objects.
CaseCommentIndentationFixer Fixes the comment indentation before a case statement.
ChainedMethodBlockFixer Adds an empty line after a block of chained method calls.
CommentLengthFixer Adjusts the length of comments regardless of their indentation so that each line is about 80 characters long.
ExpectsWithCallbackFixer Adjusts the indentation of $this->callback() calls inside the with() method of a unit test.
FindByPkFixer Replaces findByPk() calls with findById().
FunctionCallWithMultilineArrayFixer Fixes the indentation of function calls with multi-line array arguments.
InlinePhpdocCommentFixer Ensures that inline phpDoc comments are not converted to regular comments.
IsArrayNotEmptyFixer Fixes the order of isset() and empty() calls in conjunction with is_array() checks.
MockMethodChainingIndentationFixer Fixes the indentation of chained mock methods.
MultiLineIfIndentationFixer Fixes the indentation of multi-line if statements.
MultiLineLambdaFunctionArgumentsFixer Fixes the indentation of multi-line lambda function arguments.
NoExpectsThisAnyFixer Removes the explicit any() assertion in unit tests.
NoLineBreakBetweenMethodArgumentsFixer Fixes the indentation of method declarations.
NoSemicolonAfterShortEchoTagFixer Removes the semicolon after short echo tag instructions.
SingleLineConfigureCommandFixer Fixes the indentation of Symfony command arguments and options.
TypeHintOrderFixer Fixes the type hint order in method declarations.

The package contains the following custom sniffs:

Class Description
ContaoFrameworkClassAliasSniff Prevents using aliased Contao classes instead of their originals.
SetDefinitionCommandSniff Prevents using the setDefinition() method in Symfony commands.
UseSprintfInExceptionsSniff Prevents using string interpolation in exception messages.

License

Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.


All versions of easy-coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
kubawerlos/php-cs-fixer-custom-fixers Version ^3.14
slevomat/coding-standard Version ^8.0
symplify/easy-coding-standard Version ^12.1
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 contao/easy-coding-standard contains the following files

Loading the files please wait ....