Download the PHP package froiden/php_standard without Composer

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

PHP Coding Standard

This repository contains rulesets for PHP CodeSniffer and PHP Mess Detector along with some custom rules. These standards are followed internally at Froiden (www.froiden.com)

Installation

Install this repository globally using composer:

composer global require froiden/php_standard

Always use the latest version of the repository.

Setup

The project will be installed in global composer folder on your PC.

You follow the steps respective to your favourite IDE to configure PHP CodeSniffer and PHP MessDetector and point to the two rulesets in the installation folder.

Attribution

Some sniffs in this repository have been derived from original PHP_CodeSniffer project. Credits for those go to the respective developers.

VS Code SETUP

Install the extension name PHP Sniffer by wongjn

N|Solid After Activation add the below file to settings.json file

For Mac

"phpSniffer.standard": "~/.composer/vendor/froiden/php_standard/ruleset.xml",

For Linux

"phpSniffer.standard": "~/.config/composer/vendor/froiden/php_standard/ruleset.xml",

For Windows

"phpSniffer.standard": "%userprofile%/AppData/Roaming/Composer/vendor/froiden/php_standard/ruleset.xml",

N|Solid

To check

phpcs --standard=<PATH_OF_RULESET> <SPACE> <PATH_OF_FILEs_CHECK>

TO fix

phpcbf --standard=<PATH_OF_RULESET> <SPACE> <PATH_OF_FILEs_CHECK>

Ignoring a file

// @codingStandardsIgnoreFile

// phpcs:ignoreFile

Ignoring a line

// @codingStandardsIgnoreLine

// phpcs:ignore

Ignoring a block

// @codingStandardsIgnoreStart

// phpcs:disable

// @codingStandardsIgnoreEnd

// phpcs:enable

All versions of php_standard with dependencies

PHP Build Version
Package Version
Requires squizlabs/php_codesniffer Version ^3.5
phpmd/phpmd Version ^2.8
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 froiden/php_standard contains the following files

Loading the files please wait ....