GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PHPCheckstyle/phpcheckstyle: PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.

BranchesTags
Open more actions menu

Latest commit

 

History

374 Commits
374 Commits

Folders and files

NameName
Last commit message
Last commit date
checkstyle_result
checkstyle_result
 
 
config
config
 
 
html
html
 
 
src/PHPCheckstyle
src/PHPCheckstyle
 
 
test
test
 
 
vagrant_config/scripts
vagrant_config/scripts
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE_NOTES.txt
RELEASE_NOTES.txt
 
 
Vagrantfile
Vagrantfile
 
 
build.xml
build.xml
 
 
composer.json
composer.json
 
 
index.php
index.php
 
 
phpcheckstyle
phpcheckstyle
 
 
phpcheckstyle.cmd
phpcheckstyle.cmd
 
 
phpcheckstyle.sh
phpcheckstyle.sh
 
 
phpcheckstyle_sample.sh
phpcheckstyle_sample.sh
 
 
phpunit.sh
phpunit.sh
 
 
phpunit.xml
phpunit.xml
 
 
run.php
run.php
 
 
runFromWeb.php
runFromWeb.php
 
 

Repository files navigation

PHPCheckstyle

Build Status

Overview

PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the input PHP source code and reports any deviations from the coding convention.

The tool uses the PEAR Coding Standards as the default coding convention. But it allows you to configure it to suit your coding standards.

Please visit https://github.com/PHPCheckstyle/phpcheckstyle/wiki for more information and documentation

Requirements

  • PHP 5.0 or newer.
  • Web browser to view the checkstyle report (only for html view)
  • That's all.

Installation

Installation with Composer

composer require phpcheckstyle/phpcheckstyle

or Add phpcheckstyle/phpcheckstyle as a requirement to composer.json:

{
    "require": {
        "phpcheckstyle/phpcheckstyle": "dev-master"
    }
}

Update your packages with composer update or if installing from fresh, with composer install.

Manual Installation

Just download https://github.com/PHPCheckstyle/phpcheckstyle/archive/master.zip and unzip the distribution.

$> unzip PhpCheckstyle.zip

This will create a directory called phpcheckstyle and expand all files in it.

Testing with Vagrant

  • install VirtualBox

  • install Vagrant

  • launch vagrant up in the project root directory to start the VM

  • In case of problem with the "guest additions", launch :

vagrant plugin install vagrant-vbguest

  • to run PHPCheckstyle on itself, type vagrant provision --provision-with run_phpcheckstyle
  • to run PHPUnit, type vagrant provision --provision-with run_phpunit
  • to log inside the VM, type vagrant ssh

Usage

  • Change directory to the PHPCheckstyle installation directory.

    $> cd phpcheckstyle
  • Execute the run.php script providing the --src option.

    $> php run.php --src <php source directory/file>
  • Use the --help option to see more options

    $> php run.php --help

License

See LICENSE

About

PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.

github.com/PHPCheckstyle/phpcheckstyle

Topics

checkstylecoding-conventionsphpphpcheckstyle

Resources

Readme
LGPL-3.0 license
Activity
Custom properties

Stars

166 stars

Watchers

14 watching

Forks

32 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.