Download the PHP package danbettles/codesniffer-standard without Composer

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

PHP_CodeSniffer Standard

:bangbang: This version of my PHP_CodeSniffer standard is for PHP_CodeSniffer 3 and PHP 7.3+. If you're running older code then consider using version 1.0.0.

:bangbang: See the section entitled "The Unit Tests" for info on how to unit-test a custom PHPCS standard without having to 'install' it.

The Sniffs

Errors

Warnings

Installation Instructions

  1. Download and unzip, or Git clone, the project into DanBettles.

  2. Use it: pass --standard=DanBettles if you put the code in the PHPCS standards directory; or --standard=/path/to/DanBettles if it lives elsewhere.

The Unit Tests

I had some difficulty upgrading the unit-tests for PHP_CodeSniffer 3 and I still didn't like that you have to 'install' your custom standard as part of the usual PHPCS approach. After some investigation, I tried Payton Swick's solution, https://payton.codes/2017/12/15/creating-sniffs-for-a-phpcs-standard/#writing-tests, which worked out well. Thank you, Payton.

Payton Swick's solution enables you to test your custom standard in isolation, within the project. I developed his idea a little further, creating a sensibly opinionated test-case base class that makes it straightforward to test your sniffs: straightforward if you follow usual PHPUnit conventions; and straightforward because it involves using PHPUnit in a more natural way.


All versions of codesniffer-standard with dependencies

PHP Build Version
Package Version
No informations.
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 danbettles/codesniffer-standard contains the following files

Loading the files please wait ....