2017 © Pedro Peláez
 

metapackage qa-tools

Meta package for installing all PHP QA tools you'll ever need

image

dealerdirect/qa-tools

Meta package for installing all PHP QA tools you'll ever need

  • Wednesday, February 7, 2018
  • by Frenck
  • Repository
  • 7 Watchers
  • 12 Stars
  • 1,964 Installations
  • Shell
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 2 % Grown

The README.md

Dealerdirect: PHP Quality Assurance Tools

Project Stage Maintenance Awesome License, (*1)

Travis Latest Version on Packagist Packagist, (*2)

“If you don’t have time to do it right you must have time to do it over.”, (*3)

This is essentially a Composer meta package, creating a fast, easy and convenient way of installing all PHP Quality Assurance tools., (*4)

Contents

You'll get the following tools by depending on this package:, (*5)

Linters / Fixers

Quality Assistance

  • Codeception: Modern full-stack testing framework for PHP
  • ParaTest: Parallel testing for PHPUnit
  • PHPUnit: Testing framework for PHP

Other

Other packages that you'll get:, (*6)

Suggested

The following packages are suggested:, (*7)

  • Behat: Scenario-oriented BDD framework
  • ApiGen: Smart and Readable Documentation for your PHP project
  • Mockery: A simple yet flexible PHP mock object framework
  • PHP_CodeBrowser: A code browser that augments the code with information from various QA tools
  • phpcov: Command-line frontend for the PHP_CodeCoverage library
  • phpDocumentor: Documentation generator for PHP
  • phpDox: Documentation generator for PHP
  • Sami: An API documentation generator

Usage

This is a simple metapackage which can be used in two different ways; globally installed or on a per project basis., (*8)

Both methods have their strengths (+) and weaknesses (-)., (*9)

Global installation:, (*10)

  • + All tools are present anywhere on your system
  • + Can be used on any codebase, even the ones that don't use Composer.
  • - You'll have to update manually, since it's not a project, versioning is not managed.

Per project installation:, (*11)

  • + Versioning (update/installation) is provided in the project
  • - Tools not available system wide. You'll need to run them from a specific path.

These methods are not mutual exclusive. You can have your global installed version, which can be used anywhere, but still use the one provided in a project., (*12)

Installation

Global installation

The following script will install a system wide Composer for you, including the QA tools., (*13)

bash <(curl -S https://raw.githubusercontent.com/Dealerdirect/php-qa-tools/master/bin/install.sh)

That's it. This can be put in any instructions, such as a README or someone's blog, since the logic is in the shell script. Provided you download the script using https, the file has standard levels of authentication and encryption protecting it from manipulation. We also sign the install with a GPG key, this way you can check if the downloaded releases signature matches the public key of Dealerdirect., (*14)

gpg --keyserver hkp://keys.gnupg.net --recv-keys C4133165DF5EB4BAEABDADCACF1E7823C5339B59
curl -O https://raw.githubusercontent.com/Dealerdirect/php-qa-tools/master/bin/install.sh
curl -O https://raw.githubusercontent.com/Dealerdirect/php-qa-tools/master/bin/install.sh.sig
gpg --verify install.sh.sig
bash install.sh

This is obviously a shell script, if you're really concerned about the argument that it may contain nefarious activities within, you can easily review it before you run it., (*15)

curl -O https://raw.githubusercontent.com/Dealerdirect/php-qa-tools/master/bin/install.sh
less install.sh
bash instal.sh

If you already have a global Composer setup, you could include the tools manually, without the need for running the shell script above., (*16)

composer global require "dealerdirect/qa-tools:*"

Per project installation

The other option is to install this on a per project basis., (*17)

Using Composer (preferred method):, (*18)

composer require --dev "dealerdirect/qa-tools"

Or modify your composer.json to include dealerdirect/qa-tools in the require-dev sections:, (*19)

{
  "name": "acme/my-project",
  "require": {
    "…": "*"
  },
  "require-dev": {
    "dealerdirect/qa-tools": "*"
  }
}

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it., (*20)

We've set up a separate document for our contribution guidelines., (*21)

Thank you for being involved! :heart_eyes:, (*22)

Authors & contributors

The original idea and setup of this repository is by Franck Nijhof, employee @ Dealerdirect., (*23)

For a full list off all author and/or contributors, check the contributors page., (*24)

Working @ Dealerdirect

Dealerdirect is always on the looking for energetic and hard working developers and devops engineers., (*25)

Interested in working at Dealerdirect? Then please be sure to check out our vacancies., (*26)

Did not find a matching vacancy? Just get in touch!, (*27)

dealerdirect.com, (*28)

License

The MIT License (MIT), (*29)

Copyright (c) 2016-2018 Dealerdirect B.V., (*30)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*31)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*32)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*33)

The Versions