Download the PHP package symplify/easy-coding-standard-prefixed without Composer
On this page you can find all versions of the php package symplify/easy-coding-standard-prefixed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symplify/easy-coding-standard-prefixed
More information about symplify/easy-coding-standard-prefixed
Files in symplify/easy-coding-standard-prefixed
Package easy-coding-standard-prefixed
Short Description Prefixed scoped version of "symplify/easy-coding-standard" package
License MIT
Informations about the package easy-coding-standard-prefixed
The Easiest Way to Use Any Coding Standard
Features
- Use PHP_CodeSniffer || PHP-CS-Fixer - anything you like
- 2nd run under few seconds with un-changed file cache
- Skipping files for specific checkers
- Prepared sets - PSR12, Symfony, Common, Array, Symplify and more...
- Prefixed version in case of conflicts on install
Are you already using another tool?
- How to Migrate From PHP_CodeSniffer to EasyCodingStandard in 7 Steps
- How to Migrate From PHP CS Fixer to EasyCodingStandard in 6 Steps
Install
Prefixed Version
The prefix verion can be used when there are dependancy clashes. Head over to the "Easy Coding Standard Prefixed" repository for more information.
Usage
1. Create Configuration and Setup Checkers
2. Run in CLI
Features
How to load own config?
Configuration
Configuration can be extended with many options. Here is list of them with example values and little description what are they for:
Codings Standards in Markdown
How to correct PHP snippets in Markdown files?
Do you have already paths defined in ecs.php
config? Drop them from CLI and let ECS use those:
FAQ
How can I see all loaded checkers?
How do I clear cache?
Run on Git Diff Changed Files Only
Execution can be limited to changed files using the process
option --match-git-diff
:
This option will filter the files included by the configuration, creating an intersection with the files listed in git diff
.
Your IDE Integration
PHPStorm
ECS can be used as an External Tool
Go to Preferences
> Tools
> External Tools
and click +
to add a new tool.
- Name:
ecs
(Can be any value) - Description:
easyCodingStandard
(Can be any value) - Program:
$ProjectFileDir$/vendor/bin/ecs
(Path toecs
executable; On Windows path separators must be a\
) - Parameters:
check $FilePathRelativeToProjectRoot$
(append--fix
to auto-fix) - Working directory:
$ProjectFileDir$
Press Cmd/Ctrl
+ Shift
+ A
(Find Action), search for ecs
, and then hit Enter. It will run ecs
for the current file.
To run ecs
on a directory, right click on a folder in the project browser go to external tools and select ecs
.
You can also create a keyboard shortcut in Preferences > Keymap to run ecs
.
Visual Studio Code
EasyCodingStandard for Visual Studio Code extension adds support for running EasyCodingStandard inside the editor.
Tool Integration
Tool | Extension | Description |
---|---|---|
GrumPHP | ECS Task | Provides a new task for GrumPHP which runs ECS |
Report Issues
In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker
Contribute
The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.