Download the PHP package efabrica/coding-standard without Composer

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

eFabrica coding standards

eFabrica coding standards for PHP_CodeSniffer are based on PSR2.

eFabrica coding standard

Is based on PSR2 and adds some rules:

  1. Allows max. 1 empty line between code lines
  2. Doesn't allow any whitespace at the end of lines
  3. Doesn't allow any whitespace between closing parenthesis and return type colon
  4. Requires exactly one space between type and variable
  5. Requires exactly one space between return type colon and return type
  6. Requires exactly one space before and after each operator
  7. Requires exactly one space before and after . (dot) in string concatenating
  8. Requires exactly one space after keywords private, protected, public, abstract, final
  9. Requires exactly one blank line before and one blank line after namespace statement
  10. Requires max. one namespace per file
  11. Doesn't allow any blank lines between uses and trait uses
  12. Requires one line before first use and one line after last use (not applied if it is trait use and it is first / last in class)
  13. Requires exactly one blank line before and after each function except first and last
  14. Requires exactly one blank line before and after each member var except first and last
  15. Requires new with parentheses.
  16. Prefer to use single quotes over double quotes. Double quotes are allowed if string contains variable
  17. Requires trailing comma after the last element of multi-line array
  18. Requires all names as reference (no fully qualified or partial names - everything is in uses)
  19. Requires all uses to be used
  20. Requires alphabetically sorted uses
  21. Disallows leading backslash for uses
  22. Disallows snake_case for properties, variables, function names, method names
  23. Doesn't allow underscore in method names
  24. Doesn't allow multiple spaces between type and property / variable / parameter
  25. Class structure is defined as follows: uses, enum cases, constants, properties, constructor, methods
  26. Requires visibility for all constants
  27. Requires exactly one blank line between methods
  28. Doesn't allow any useless comments

Usage

for {dirs} use space-separated list of directories \ for {other-options} see vendor/bin/phpcs --help or visit PHP_CodeSniffer documentation

eFabricaStrict coding standard

Is based on eFabrica coding standard and adds some strict rules:

  1. Use declare(strict_types=1); at the top of each PHP file. Use one empty line before and also after declare
  2. Requires each class to be declared either as abstract or as final

Usage

for {dirs} use space-separated list of directories \ for {other-options} see vendor/bin/phpcs --help or visit PHP_CodeSniffer documentation


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires slevomat/coding-standard Version ^8.4
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 efabrica/coding-standard contains the following files

Loading the files please wait ....