Download the PHP package alex-the-coder/coding-standards without Composer

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

Alex Coders's coding standards

About

Alex Coders's PHP Coding Standards is a set of two PHP_CodeSniffer configuration XML files; the main ruleset.xml config file that define base PHP coding standard, and a second ruleset-strict.xml config file that define strict PHP coding standard.

Alex Coders's PHP Coding Standards is an essential development tool that ensures your code remains clean and consistent.

Requirements

Alex Coders's PHP Coding Standards requires PHP version 5.4.0 or greater and PHP_CodeSniffer version 3.6.0 or greater.

Installation

The easiest way to get started with Alex Coders's PHP Coding Standards is to install it through Composer with the following command:

Or alternatively, include a dependency for alex-the-coder/coding-standards in your composer.json file. For example:

You can then run PHP_CodeSniffer from the vendor's bin directory to make sure the necessary dependencies and all Alex Coder's PHP Coding Standards are installed correctly:

Getting Started

To check a PHP file against the Alex Coders's PHP Coding Standard, use the --standard command line argument and specify the file's location:

Or if you wish to check an entire directory you can specify the directory location instead of a file:

If PHP_CodeSniffer finds any coding standard errors, a report will be shown after running the command.

Full usage information and example reports are available on the usage page.

Custom configuration file

To simplify usage, you can create an XML configuration file ./.phpcs.xml in your project root with the content:

You can then run simple commands like:

or

See more information about using a Configuration File and Annotated Ruleset.

Full list of Customisable Sniff Properties here.

Documentation

The documentation for PHP_CodeSniffer is available on the Github wiki.

See the Configuration Options manual page.


All versions of coding-standards with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
squizlabs/php_codesniffer Version ^3.6.0
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 alex-the-coder/coding-standards contains the following files

Loading the files please wait ....