Download the PHP package php-forge/coding-standard without Composer

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

PHP Forge

Coding standard


Centralized ECS and Rector configuration for PHP projects
Share one set of rules across multiple repositories via Composer.

System requirements

Installation

Or add the dependency manually to composer.json:

Then run composer update.

Configuration files

This package ships shared ECS and Rector configurations under vendor/php-forge/coding-standard/src/:

File Purpose
src/ecs.php Shared ECS base rules, no PHP migration set
src/ecs-81.php Base + @PHP81Migration PHP-CS-Fixer set
src/ecs-82.php Base + @PHP82Migration
src/ecs-83.php Base + @PHP83Migration
src/ecs-84.php Base + @PHP84Migration
src/rector.php Shared Rector base rules, no PHP level set
src/rector-81.php Base + SetList::PHP_81 + LevelSetList::UP_TO_PHP_81
src/rector-82.php Base + SetList::PHP_82 + LevelSetList::UP_TO_PHP_82
src/rector-83.php Base + SetList::PHP_83 + LevelSetList::UP_TO_PHP_83
src/rector-84.php Base + SetList::PHP_84 + LevelSetList::UP_TO_PHP_84

Pick the version that matches the minimum PHP your project supports; Rector upgrades code up to that level and PHP-CS-Fixer enforces matching syntax. The plain ecs.php / rector.php apply no PHP-version migrations.

ECS wrapper (ecs.php)

Create ecs.php in your repository root, requiring the version that matches the minimum PHP your project supports (ecs-83.php for PHP 8.3, etc.):

Rector wrapper (rector.php)

Create rector.php in your repository root, importing the version that matches your minimum PHP target:

Yii2-specific rules

For framework-specific rules, keep them in a separate config file (or a separate package) and import it after the base configuration. Do not mix Yii2 rules into the generic base:

Scaffolded distribution

This package is a yii2-extensions/scaffold provider for the root ecs.php and rector.php wrapper templates (sourced from src/config/ via scaffold.json). Consumers can opt in by allowing the plugin and listing this package as an authorised provider:

With auto: false, the plugin does not run on composer install; sync the wrappers manually:

Both wrappers ship in mode preserve; written once on first install, never overwritten so consumer edits to paths or PHP target version survive subsequent runs.

Related packages

For dev environment scaffolding, see php-forge/baseline. The two packages are independent; adopt either, both, or neither.

Composer scripts

Follow the same convention used across PHP Forge repositories:

Package information

PHP Latest Stable Version Total Downloads

Project status

Quality Security StyleCI

Our social networks

Follow on X

License


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
rector/rector Version ^2.4
symplify/easy-coding-standard Version ^13.3.2
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 php-forge/coding-standard contains the following files

Loading the files please wait ...