ktamas77 / remotecs
Remote Coding Standards Validation for PHP
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
Type:project
pkg:composer/ktamas77/remotecs
Requires
- php: >=5.3.0
- idci/aws-ses-bundle: ^1.0
This package is auto-updated.
Last update: 2025-10-06 09:25:14 UTC
README
Convenient Coding Standards Validation for GitHub
RemoteCS is a remote Coding Standard Validator for Github repositories. Unlike regular CS Validators, it doesn't requires any changes on the client side (no IDE plugin required neither pre-commit-hook setup for GIT). No need to set up on every developer's machine, just in one central place.
Features:
RemoteCSis aGitHub WebHook- Activated after each commit- Scans the newly added and the modified files after each commit (not the entire repository) on the committed branch
- Currently supports
PHP:PHP lintfor Syntax Checking andPHPCSfor Coding Standards Validation - Sends E-mail to the committer after commits about the results (if there is any result)
Future directions:
- Scan for ignore list file in each repository (example:
/.remotecs-ignore) - Send coding standard validation messages as inline comments into the commit to GitHub
- Multiple language support (
Java,Ruby,Python, etc) - Give points to the developers based on their code cleaniness & send weekly summary / toplist
- Web interface
Prerequisites
PHPGITPHPCS(PEAR/PHP_CodeSniffer)- A webserver with sufficient rights to run all of the above
- Credentials for
Amazon Simple Email Serviceto receive E-mails
Quick Install
- Copy the
remotecsfiles to your webserver's directory or use composer to install:
composer require ktamas77/remotecs
- Add the script's HTTP URL to
Github -> Your Project -> Settings -> Service Hooks -> WebHook URLs - Make sure the path's are correct in the
Payload.class.phpfile & your webserver has sufficient rights - Copy the
config.sample.phpintoconfig.phpand set up yourAmazon Simple Email Servicecredentials to receive E-mails - Press
Test Hookor Commit & Push files - If in trouble, enable debugging by
$payload->debug(true);inindex.phpand check thedebug.logfile in the log directory - Enjoy! =)
References:
- PHP CodeSniffer: http://pear.php.net/package/PHP_CodeSniffer/
Author
- Tamas Kalman ktamas77@gmail.com