Download the PHP package digipolisgent/qa-drupal without Composer

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

Quality Assurance - Drupal

This package provides a set of Quality Assurance tools and configuration files for Drupal websites and extensions (modules, themes or profiles).

Build Status Master Maintainability

Requirements

Versions

The versions support different PHP & Drupal versions:

Installation

The installation depends on the type of project: website or Drupal module.

Drupal website

Add the grumphp entry to the extra section of your composer.json.

Add the qa-drupal package as dev requirement:

Drupal module

Add the grumphp entry to the extra section of your composer.json.

Add the qa-drupal package as dev requirement:

Configuration

General

If required you can extend or override the provided configuration file of a task. Simply create the matching configuration file in the root of your project.

For example, to override the provided phpcs.xml file you can either create a phpcs.xml or phpcs.local.xml file.

Note that the .local. files should only be used for changes that shouldn't be committed. Exclude them in .gitignore:

Yaml and Neon files will extend (merged into) the provided configuration file by default. Create a .env or .env.local file and add following contents to change this behaviour:

Wherein [FILENAME] matches the configuration filename and [TYPE] is either:

Other file types cannot be merged and will just override all other less specific files.

PHPStan in deprecations only mode

Create a phpstan.neon file and add following contents to ignore everything except deprecations:

Ignore automatically created config files

Some GrumPHP tasks require a config file. These are automatically creacted, from the examples within vendor/qa-drupal/config or by the project specific files within your website or drupal module root directory. The generated files are also stored in the same website/module root. You can recognize these files by the .qa-drupal. suffix.

These files should not be committed! Add them to the .gitignore file:

Ignore PHPUnit build files

When the PHPUnit task runs, coverage report files are stored into the build directory located in the root of your website/project. Add this file to the .gitignore file:

Run PHPUnit locally without coverage

Running PHPUnit with coverage report is time-consuming. You can locally speed up PHPUnit by copying the generated phpunit.qa-drupal.xml file to phpunit.local.xml and remove the <logging> section from it.

Run GrumPHP

GrumPHP will automatically run all tasks on the changed code on git commit and push.

You can run all tasks at once:

Or you can run one or more specific tasks manually by running:

PHPStorm

PHPStorm requires config files for PHP_CodeSniffer, PHP Mess Detector & PhpUnit. Run the grumphp command at least once (successfully) to generate these files.

The files will be created as:

Configure the paths to these files in PHPStorm:

CodeClimate

Update the .codeclimate.yml file within your project.

Make sure that you use the CodeClimate specific phpcs config file:

Make sure that you use the beta channel for the PHPCodeSniffer plugin:

PHP compatibility

In order to check php compatibility you can use the phpcs PHPCompatibility sniff:


All versions of qa-drupal with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
drupal/coder Version ^8.3
drupal/drupal-extension Version ^5.0
enlightn/security-checker Version ^1.4
ergebnis/composer-normalize Version ^2.11
mglaman/phpstan-drupal Version ^1.1
nette/neon Version ^3.2
phpcompatibility/php-compatibility Version ^9.3
phpmd/phpmd Version ^2.11
phpro/grumphp-shim Version ^1.5.0
phpspec/prophecy Version ^1.10
phpspec/prophecy-phpunit Version ^2
phpstan/phpstan-deprecation-rules Version ^1.0
phpunit/phpunit Version ^9.3
sebastian/phpcpd Version ^6.0
symfony/phpunit-bridge Version ^5.2 || ^6.0
drupal/core Version ^10.3 || ^11.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 digipolisgent/qa-drupal contains the following files

Loading the files please wait ....