Download the PHP package drupol/phpcsfixer-configs-drupal without Composer

On this page you can find all versions of the php package drupol/phpcsfixer-configs-drupal. 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 phpcsfixer-configs-drupal

Latest Stable Version GitHub stars Total Downloads License Say Thanks! Donate!

PHP CS Fixer Drupal Configurations

Description

This package provides a set [PHP-Cs-Fixer](https://github.com/FriendsOfPHP/PHP CS Fixer) configuration objects ready to be used in a Drupal project.

Documentation

Available configuration objects:

Requirements

Installation

The recommended way to install PHP CS Fixer Drupal is to use Composer in a dedicated composer.json file in your project, for example in the tools/php-cs-fixer directory:

Or using the main composer.json:

Configuration

Assuming you installed PHP CS Fixer as instructed above, you should now setup a configuration .php-cs-fixer.php file in the root directory of your project.

The example below setup PHP CS Fixer to use Drupal 8/9/10 rules:

See the PHP CS Fixer documentation on how to use the advanced configuration object.

Usage

Assuming you installed PHP CS Fixer as instructed above, you can run the following command to fix your Drupal project:

Code quality, tests and benchmarks

Every time changes are introduced into the library, Github Actions run the tests and the benchmarks.

The library has tests written with PHPUnit. Feel free to check them out in the tests directory. Run ./vendor/bin/phpunit to trigger the tests.

Before each commit some inspections are executed with GrumPHP, run ./vendor/bin/grumphp run to check manually.

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)


All versions of phpcsfixer-configs-drupal with dependencies

PHP Build Version
Package Version
Requires php Version >= 8.0.0
ext-mbstring Version *
ext-tokenizer Version *
drupol/phpcsfixer-configs-php Version ^2.0
friendsofphp/php-cs-fixer Version ^3.49
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 drupol/phpcsfixer-configs-drupal contains the following files

Loading the files please wait ....