Download the PHP package lin3s/cs without Composer
On this page you can find all versions of the php package lin3s/cs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cs
LIN3S CS
The coding standards in the LIN3S way.
WHY?
This package is created to centralize all the checks style of LIN3S projects, in an easy way to install all the tools and improving the maintainability. It is a flexible and customizable solution to automatize all related with coding standards. This library is focused to PHP, Javascript and Sass projects.
- Checks if Composer json has changes, the lock must be committed too.
- Fixes the PHP code with fully customizable PHP-CS-Fixer.
- Lints the Twig files with TwigCS.
- Checks mess detections with PHPMD.
- Checks the Sass best practices with Stylelint.
- Checks the code quality of Javascript files with ESLint.
This library is very focused to use as pre-commit hook so, this is the reason of Git PHP class exists. The checkers only validate the files that they are going to commit.
Prerequisites
LIN3S's CS is a PHP console application so, it requires PHP itself. Apart of it, this library has the following requirements:
Getting started
The recommended and the most suitable way to install is through Composer. Be sure that the tool is installed in your system and execute the following command:
Then you have to update the composer.json
with the following code:
REMEMBER: The
.lin3s_cs.yml
file is generated dynamically with Composer. The best practices recommend that only track the.dist
file ignoring the.lin3s_cs.yml
inside.gitignore
. In the same way, we recommend that, also, dynamically generated.phpspec_cs
,.php_cs
,.stylelintrc.js
,.eslintrc.js
and.editorconfig
files, it should be ignored.
Use ESLint in a React.js environment
In LIN3S are building a lot of projects with React.js so, keeping in mind the simplicity of the configuration process the following lin3s are our requirements to standardize the JS code inside this environment.
Licensing Options
All versions of cs with dependencies
allocine/twigcs Version ^3.0
derrabus/composer-parameter-handler Version ^2.1
lin3s/php-cs-fixer-config Version ^1.0.1
neronmoon/scriptsdev Version 0.1.1
phpmd/phpmd Version ^2.6
symfony/filesystem Version ^2.8 || ^3.0 || ^4.0
symfony/yaml Version ^2.8 || ^3.0 || ^4.0