Download the PHP package eventjet/coding-standard without Composer

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

Eventjet Coding Standard

PHP-CS-Fixer

Basic Usage:

Add the following .php-cs-fixer.dist.php file to your project's root:

This will create a basic configuration with a Finder that includes everything in . and excludes vendor. If you need a more granular directory specification, you can pass a custom Finder:

More strict rules:

To use the strict rules, use the strict method::

The strict rules enforce a union syntax for nullable types, a certain method order and trailing commas everywhere. See the file for details.

PHPCS

Basic Usage:

Add the following phpcs.xml file to your project's root:

More strict rules:

There is also a more strict ruleset which forces type hints and return types to be set.

This sniff can be problematic: If you implement interfaces or have your own interfaces which don't have parameter type hints and return types set or if you are on legacy code, enforcing this sniff would lead to a BC break. This sniff is also set to phpcs-only, so phpcbf won't fix errors automatically.

To use this ruleset, just use the corresponding rule name in your phpcs rule ref instead of the default one:

Excluding sniffs:

For certain files:

To exclude a sniff for a certain set of files, reference the rule explicitly and add an exclude pattern:

Suppressing sniffs locally

To suppress a sniff directly in the code, use the @phpcsSuppress annotation:

More info on this can be found here.

Exclude a whole sniff:

It is also possible to exclude a sniff completely:


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
dealerdirect/phpcodesniffer-composer-installer Version ^0.5 || ^0.6 || ^0.7 || ^1.0
friendsofphp/php-cs-fixer Version ^3.32
slevomat/coding-standard Version ^8.4
squizlabs/php_codesniffer Version ^3.6.1
webimpress/coding-standard Version ^1.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 eventjet/coding-standard contains the following files

Loading the files please wait ....