PHP code example of classy-org / php-classy-standards
1. Go to this page and download the library: Download classy-org/php-classy-standards library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
classy-org / php-classy-standards example snippets
# 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
vendor/bin/php-classy-fixer fix --dry-run ./folder/with/files/to/check