stickee/php-code-style

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.2.0) of this package.

Stickee PHP Code Style

v1.2.0 2019-08-07 13:32 UTC

This package is auto-updated.

Last update: 2023-02-17 13:55:28 UTC


README

This repo has been replaced by Canary.

Stickee PHP Code Style

This repository contains config files for tools for PHP projects.

Usage

First install this package:

composer require --dev stickee/php-code-style

and then pass the -c/--c/--config option to the tool you wish to use and use vendor/stickee/php-code-style/dist/<config>.yml as the path.

PHPStan

PHPStan can be ran using:

vendor/bin/phpstan <COMMAND> -c vendor/stickee/php-code-style/dist/phpstan.neon

PHPCS

PHP-CS-Fixer can be ran using:

vendor/bin/phpcs <COMMAND> --config vendor/stickee/php-code-style/dist/.phpcs

Husky

To allow husky to automatically run the above tasks, copy the .huskyrc and .lintstagedrc file into the root of your project. Using stickee-control will do this automatically for you.