This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@swis/php-cs-fixer-proxy

0.1.4 • Public • Published

@swis/php-cs-fixer-proxy

Latest Version on NPM Software License

Node.js proxy for PHP-CS-Fixer to run Git Hooks from Windows. This package is intended to be used with lint-staged.

N.B. Includes a fallback to local PHP-CS-Fixer when not on Windows.

How does it work?

This package sets up an SSH connection to swisdev.nl and runs PHP-CS-Fixer on your virtual machine. All arguments are directly passed to PHP-CS-Fixer. If you don't work on a Windows PC, PHP-CS-Fixer is run directly on your machine. Please see the PHP-CS-Fixer documentation for all options.

Requirements

PHP-CS-Fixer needs to be installed (and configured) in your project i.e.

$ composer require --dev friendsofphp/php-cs-fixer

Installation

$ npm install @swis/php-cs-fixer-proxy

Example lint-staged config

Lint

package.json

{
  "lint-staged": {
    "*.php": [
      "php-cs-fixer-proxy --dry-run"
    ]
  }
}

Fix

package.json

{
  "lint-staged": {
    "*.php": [
      "php-cs-fixer-proxy",
      "git add"
    ]
  }
}

Security

If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i @swis/php-cs-fixer-proxy

Weekly Downloads

3

Version

0.1.4

License

MIT

Unpacked Size

6.78 kB

Total Files

5

Last publish

Collaborators

  • swis