Download the PHP package perceptiontech/php-coding-standard without Composer

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

Perception PHP coding standard

This standard follows the (Symfony standards)[https://symfony.com/doc/current/contributing/code/standards.html] with with the following exceptions:

Installation steps

  1. Install PHP code sniffer: https://github.com/squizlabs/PHP_CodeSniffer#installation
  2. Require package globally using composer:

  3. Add the coding standard to the PHP_CodeSniffer install path (under MacOS and Linux):

    Be aware that, if you already have installed paths, they will be lost. If so, you will have to execute:

  4. Check the installed standards for "Perception":

PHPStorm configuration

Code_Sniffer configuration

  1. Go to quality tools, unfold the Code Sniffer option and toggle the configuration by clicking on ...:

  2. Set the path to your local PHPCode_Sniffer binary and validate it:

Ruleset configuration

  1. Go to Editor > Inspections > PHP > Quality tools > PHP Code Sniffer validation

  2. Enable the configuration, refresh the "Coding standard" and select "Perception". Configuration should be as it follows:

    (NOTE: set the severity as "warning". Otherwise, it is difficult to spot the errors within the editor)

  3. After this configuration, PHPStorm should inform you whenever a piece of code is not correct according to the rules:


All versions of php-coding-standard with dependencies

PHP Build Version
Package Version
Requires squizlabs/php_codesniffer Version ^3.3.1
escapestudios/symfony2-coding-standard Version ^3.5.2
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 perceptiontech/php-coding-standard contains the following files

Loading the files please wait ....