Download the PHP package symplify/easy-coding-standard without Composer

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

The Easiest way to use Coding Standard

Downloads total


Killer Features


Install


Usage

On the first run, ECS creates ecs.php config file with directories and first rule to kick off.

Then you can run again to see the suggested diffs:

To actually fix your code, add --fix:

That's it!


Configure

Most of the time, you'll be happy with the default configuration. The most relevant part is configuring paths, checkers and sets:


Do you want to check all *.php files in your root (ecs.php, rector.php etc.)? Instead of listing them one by one, use ->withRootFiles() method:


Do you want to include one of 44 sets from php-cs-fixer?

You can:


How to Skip Files/Rules?

Love the sets of rules, but want to skip single rule or some files?


Less Common Options

You probably won't use these, but they can give you more control over the internal process:

Mentioned values are default ones.


Do you use ECS across variety of project? Do you want to run them always the same way in each of those project? Let's make use of Composer scripts

This command adds 2 handy scripts to your composer.json:

Run them always the same way - to check the code:

To apply fixes, run:


Controlling Output Format

You may want to use ECS to generate reports for third-party tooling.

We currently provide formatters for:

For information on how each of these behave, refer to their respective implementations.


FAQ

How do I clear cache?

How can I see all used rules?

Do you look for json format?


How to Migrate from another coding standard tool?

Do you use another tool and want to migrate? It's pretty straightforward - here is "how to":


All versions of easy-coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 symplify/easy-coding-standard contains the following files

Loading the files please wait ....