2017 © Pedro Peláez
 

library style-checker

Library that defines a single PHP code style checking configuration.

image

movingimage/style-checker

Library that defines a single PHP code style checking configuration.

  • Saturday, May 20, 2017
  • by mi24administrator
  • Repository
  • 3 Watchers
  • 0 Stars
  • 1,773 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 24 % Grown

The README.md

PHP Code Style Checker

This library provides a single policy on PHP code styles, as well as a utility to check your project/library against this code style policy without automatically fixing your code., (*1)

Installation

Make sure that in your composer.json you have the private packagist set up:, (*2)

{
[...]
  "repositories": [
    {
      "type": "composer",
      "url": "http://packagist.mi24.tv/"
    }
  ],
  "config": {
    "secure-http": false
  },
[...]
}

Now, install it as a development dependency:, (*3)

$ composer require --dev movingimage/style-checker

Usage

To check your current project's codebase after installing the library:, (*4)

$ ./vendor/bin/check_code_style.sh

Or you can install it as a pre-commit hook by creating a new file .git/hooks/pre-commit with the following contents:, (*5)

#!/usr/bin/env bash
./vendor/bin/check_code_style.sh

The Versions

20/05 2017

dev-master

9999999-dev

Library that defines a single PHP code style checking configuration.

  Sources   Download

proprietary

The Requires

 

by Ruben Knol