Download the PHP package eckinox/eckinox-cs without Composer

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

Eckinox CS: linting and coding standards

Getting started

To add the coding standards checkers and linters to your PHP project, follow the instructions below:

  1. Make sure you don't have any uncommited files in your project.
    This package will add files to your project, so you'll likely want to commit all of these all at once.
  2. Add the package to your project with Composer using the command below:

    The package will automatically add all of the configuration files and utility scripts you'll need to your project.

  3. Follow any additional instructions provided in the CLI.
  4. Run the following command to install Javascript dependencies:

  5. Ensure scripts are executable:

  6. Commit the files to your project:

  7. Enjoy!

What's included

This package is a like a metapackage, but with a little sugar on top.

Not only does it add other PHP dependencies via Composer, but it also:

Here's a bit of information about all of that.

Tools and packages

Here are the tools that are included and configured in this package:

Tool Config Git-aware
EditorConfig
Helps maintain consistent coding styles across various editors and IDEs.
.editorconfig N/A
PHP-CS-Fixer
A tool to automatically fix PHP Coding Standards issues
.php_cs.dist
PHPStan
PHP Static Analysis Tool - discover bugs in your code without running it!
phpstan.neon
PHPMD
PHP Mess Detector
.phpmd.xml
Twig-CS-Fixer
The missing checkstyle for twig!
.twig-cs-fixer.dist.php
ESLint
Find and fix problems in your JavaScript code
.eslintrc.json .eslintignore
CSS stylelint
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
.stylelintrc.json

The Git-aware column indicates tools whose provided execution script (located in DEV/cs/) will only take into account staged files, instead of running on every file in your project every time.

Configuration files

The packge creates configuration files for every tool it adds.

These configuration files match Eckinox's coding standards, and should not be changed manually.
Changed files could be overwritten in later updates of eckinox/eckinox-cs.

Pre-commit hook for Git

The package includes a pre-commit script that will execute all of the provided tools to check for potential errors and non-standard code.

If you don't have a pre-commit script already, the package will automatically set up this one (as a symbolic link) when you install the package.
If you already have a pre-commit, you will have to merge the two manually.

Another pre-commit script ( pre-commit-with-bypass ) is available if you need to be able to commit when somes test fail. After each tool if some test fail, the script will ak if you want to continue. The script need to be installed manually.

Github actions workflow

To ensure your project is always respecting the standards, this package adds a workflow for Github Actions that runs every included tool on your codebase.

This allows project members and maintainers to view the status of every branch and pull request, right in Github.

Authentication for private repositories

If you are using private Github repositories via Composer, set up the secrets for HTTP authentication as described in php-actions/composer's documentation.

The workflow included by eckinox-cs already includes the steps necessary to retrieve and use that authentication token, if it is present.


All versions of eckinox-cs with dependencies

PHP Build Version
Package Version
Requires eckinox/installer-plugin Version ^2.0.2
friendsofphp/php-cs-fixer Version ^3.0
friendsoftwig/twigcs Version ^5.0|^6.0
phpmd/phpmd Version ^2.10
phpstan/phpstan Version ^1.4
phpstan/extension-installer Version ^1.1
phpstan/phpstan-symfony Version ^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 eckinox/eckinox-cs contains the following files

Loading the files please wait ....