Download the PHP package burdamagazinorg/thunder-dev-tools without Composer

On this page you can find all versions of the php package burdamagazinorg/thunder-dev-tools. 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 thunder-dev-tools

Thunder Development Tools


Code Style Guidelines

Thunder code style guidelines are in agreement with Drupal code styles. For general validation of files is used Drupal Coder. More detailed validation of JavaScript code is made by ESLint with predefined Drupal settings.

Drupal Coder

In order that Drupal Coder works, following steps should be executed.

  1. Install Composer (* this step can be skipped if composer already exists on system)
    • Please follow guide on official page
  2. Install Drupal/Coder in global Composer directory

Usage from command line:

Additionally both commands can be used with option for checking defined Drupal best practices.

ESLint

In order that ESLint works, following steps should be executed

  1. Install Node.js (* this step can be skipped if Node.js already exists on system)
    • Official guide from Node.js page should be followed
  2. Install ESLint

Usage from command line:

Thunder Guidelines Checker

This script is provided by Thunder Development Tools. It's wrapper for phpcs and eslint tools.

To initialize project with requirements execute:

Please take in consideration that path could be customized in your root composer.json file.

Then some basic options for checking of code style guidelines can be used:

For example to check and correct php and javascript files with auto correction:


Integrate Code Style checking in PHPStorm

Drupal Coder

  1. In PHPStorm preferences search for:
  2. Select option
  3. Open configuration dialog by pressing edit button [...]
  4. In Configuration dialog add new configuration or edit existing Local. Set correct path for phpcs by pressing edit button [...]. Path should be: and save that settings for Code Sniffer
  5. To configure usage of PHP Code Sniffer select
  6. Option PHP Code Sniffer validation should already be filtered by Search. Enable that option.
  7. And for that validation procedure change Coding standard option to Drupal. (* sometimes PHPStorm doesn't recognize that coding standard has been changed if Drupal is preselected. It's sufficient just to select other coding standard and then put back to Drupal)

After these settings are saved in PHPStorm warnings with prefix phpcs: will be displayed in editor.

ESLint

  1. In PHPStorm preferences search for:
  2. Select option
  3. Enable it

Default settings can be preserved. ESLint will automatically search for installed command and also coding style configuration files from project will be used.


Git Hooks

Git Pre Commit Hook

To check is code valid before commit, git pre commit hook can be used with execution of thunder guideline checker script. Create script file in your project folder, with following content:

Make sure that the file is executable. That will automatically validate files before commit and display possible problems and additionally commit will not be executed unless everything is correct and valid.


All versions of thunder-dev-tools with dependencies

PHP Build Version
Package Version
Requires drupal/coder Version ^8.2.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 burdamagazinorg/thunder-dev-tools contains the following files

Loading the files please wait ....