Download the PHP package sympress/qa without Composer

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

SymPress QA

Shared QA tooling for SymPress packages.

This package does not replace sympress/coding-standards. The coding standards package remains responsible for PHPCS rulesets and custom sniffs. sympress/qa provides the shared toolchain, PHPStan defaults, PHPUnit templates, and the qa runner used by package scripts and CI.

The runner is a Symfony Console application and uses Symfony Process for tool execution. It is designed to behave the same in a standalone split package, in the SymPress monorepo, and inside CI containers.

When a monorepo root targets a package via --package, the runner prefers the root or QA toolchain before a package-local vendor/bin. That keeps direct monorepo checks deterministic even when an individual package still has an older local vendor directory. PHPCS and PHPCBF are executed with PHP deprecation notices suppressed, so dependency deprecations in coding-standard tooling do not abort scans on newer PHP runtimes.

Installation

The package intentionally keeps PHPCS, PHPStan, PHPUnit and their extensions in require. Downstream packages install sympress/qa as a dev dependency and receive the complete QA toolchain transitively.

PHP 8.5 is required. The toolchain uses stable SymPress Coding Standards 1.1 releases and permits PHPUnit 10.5, 11.5 or 13, according to the consumer's constraints. See the 0.1.0 release preparation for the verified dependency set and remaining publication steps.

Composer Scripts

Recommended package scripts:

Packages can still keep custom implementations behind the same script names. CI should call composer qa and let each package decide whether it uses sympress/qa or custom commands.

Commands

Local unavailable gates are visibly reported as SKIP. CI and GitHub Actions fail unavailable enabled gates automatically. Add --strict to a local tool command or to qa when an unavailable gate must fail. Use doctor --strict with an adoption file to verify that required gates are configured and referenced by composer qa.

DevOps Usage

lint:php checks package PHP files with the interpreter running QA (PHP_BINARY), without executing the files. It propagates syntax failures and the interpreter's exit code. Dependency, generated-output and cache directories (vendor, node_modules, .git, var, build, phpstan-cache, test-results and playwright-report) and symlinks are excluded. Public PHP entrypoints are checked; use repeatable --exclude options for additional package-relative directories. Packages opt in through "lint:php": "@php vendor/bin/qa lint:php" and @lint:php in composer qa. The aggregate qa qa command keeps its existing three gates.

CI jobs can keep their package-specific behavior simple:

Packages that need custom behavior can keep the same Composer script names and wrap custom commands behind them. The runner also supports direct package targeting from a monorepo root:

doctor --strict checks only configured required gates. Missing optional gates are reported as planned work when an adoption file is present; without one, cs is the only required default.

The adoption format is defined by docs/qa-adoption.schema.json. Invalid JSON, schema-incompatible data or an unsupported version always fails instead of silently loading defaults. This repository's own composer qa runs all gates in strict mode.

Config Includes

PHPStan configs can include shared defaults:

WordPress packages can use:

szepeviktor/phpstan-wordpress is installed by this package and should be loaded through phpstan/extension-installer. Consuming packages need to allow the Composer plugin:

PHPCS remains package-local through phpcs.xml.dist, usually referencing SymPress-Pure, SymPress-WordPress, SymPress-Boundary, or SymPress-Templates.


All versions of qa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
composer-runtime-api Version ^2.0
phpstan/extension-installer Version ^1.4
phpstan/phpstan Version ^2.2
phpstan/phpstan-deprecation-rules Version ^2.0
phpstan/phpstan-phpunit Version ^2.0
phpunit/phpunit Version ^10.5 || ^11.5 || ^13.0
symfony/console Version ^8.0
symfony/filesystem Version ^8.1.11
symfony/process Version ^8.0.5
szepeviktor/phpstan-wordpress Version ^2.0
sympress/coding-standards Version ^1.1.1
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 sympress/qa contains the following files

Loading the files please wait ...