library php-classy-standards
A tool to automatically check and fix PHP files according to Classy coding standards
classy-org/php-classy-standards
A tool to automatically check and fix PHP files according to Classy coding standards
- Tuesday, April 10, 2018
- by PGBI
- Repository
- 4 Watchers
- 0 Stars
- 5,117 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 18 % Grown
Installation
composer require --dev classy-org/php-classy-standards
Use
# Testing php files comply with Classy coding standards
vendor/bin/php-classy-fixer fix --dry-run
# Fixing files
vendor/bin/php-classy-fixer fix
# Configure git to automatically fix php files on commit
ln -s ../../vendor/bin/php-classy-precommit-hook .git/hooks/pre-commit
Since php-classy-standards is a simple wrapper around php-cs-fixer with
pre-configured rules we use at Classy, you can pass to it any argument php-cs-fixer
is accepting. Example:, (*1)
vendor/bin/php-classy-fixer fix --dry-run ./folder/with/files/to/check
dev-master
9999999-dev
A tool to automatically check and fix PHP files according to Classy coding standards
Sources
Download
MIT
The Requires
1.0.3
1.0.3.0
A tool to automatically check and fix PHP files according to Classy coding standards
Sources
Download
MIT
The Requires
1.0.2
1.0.2.0
A tool to automatically check and fix PHP files according to Classy coding standards
Sources
Download
MIT
The Requires
1.0.1
1.0.1.0
A tool to automatically check and fix PHP files according to Classy coding standards
Sources
Download
MIT
The Requires
1.0.0
1.0.0.0
A tool to automatically check and fix PHP files according to Classy coding standards
Sources
Download
MIT
The Requires