All Projects → Slamdunk → php-cs-fixer-extensions

Slamdunk / php-cs-fixer-extensions

Licence: MIT license
PHP-CS-Fixer extensions and configurations

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-cs-fixer-extensions

sniff
Simpler PHP code sniffer built on top of PHP-CS-Fixer.
Stars: ✭ 14 (-80.28%)
Mutual labels:  coding-standards, php-cs-fixer
grunt-stylelint
Stylelint adapter for the Grunt task runner.
Stars: ✭ 26 (-63.38%)
Mutual labels:  coding-standards
phpcs-psr4-sniff
[READ-ONLY] PHP_CodeSniffer sniff that checks class name matches PSR-4 project structure.
Stars: ✭ 23 (-67.61%)
Mutual labels:  coding-standards
DebugStatementsFixers
Fixers set for PHP-CS-Fixer. Removes debug statements, which shouldn't be in production ever.
Stars: ✭ 22 (-69.01%)
Mutual labels:  php-cs-fixer
eslint-config
MOXY eslint configuration to be used across several JavaScript projects
Stars: ✭ 14 (-80.28%)
Mutual labels:  coding-standards
atom-php-cs-fixer
Run the 'PHP Coding Standards Fixer' within Atom
Stars: ✭ 30 (-57.75%)
Mutual labels:  php-cs-fixer
eslint-config-javascript
Write bulletproof JavaScript like a pro! 😎
Stars: ✭ 34 (-52.11%)
Mutual labels:  coding-standards
verilog-coding-style
Verilog (SystemVerilog) coding style
Stars: ✭ 36 (-49.3%)
Mutual labels:  coding-standards
php-toolbox
🐳 A Docker image designed for PHP developers that care about code quality.
Stars: ✭ 18 (-74.65%)
Mutual labels:  php-cs-fixer
eslint-config-naver
Naver JavaScript Coding Conventions rules for eslint
Stars: ✭ 184 (+159.15%)
Mutual labels:  coding-standards
grunt-wp-css
Format style sheets according to the WordPress CSS coding standards.
Stars: ✭ 36 (-49.3%)
Mutual labels:  coding-standards
wptide
🌊 Tide is a series of automated tests run against every WordPress.org theme and plugin
Stars: ✭ 77 (+8.45%)
Mutual labels:  coding-standards
Codor
Custom PHPCS sniffs to find Code Smells
Stars: ✭ 40 (-43.66%)
Mutual labels:  coding-standards
cscs
A curated list of Coding Style Conventions and Standards.
Stars: ✭ 1,486 (+1992.96%)
Mutual labels:  coding-standards
annotate-pull-request-from-checkstyle
cs2pr - Annotate a GitHub Pull Request based on a Checkstyle XML-report within your GitHub Action
Stars: ✭ 146 (+105.63%)
Mutual labels:  php-cs-fixer
coding-standard
🐽 Tuned & very strict coding standards for PHP projects
Stars: ✭ 13 (-81.69%)
Mutual labels:  coding-standards
laravel-php-cs-fixer
A PHP-CS-Fixer bridge for Laravel 5.5+
Stars: ✭ 14 (-80.28%)
Mutual labels:  php-cs-fixer
OpenStaticAnalyzer
OpenStaticAnalyzer is a source code analyzer tool, which can perform deep static analysis of the source code of complex systems.
Stars: ✭ 19 (-73.24%)
Mutual labels:  coding-standards
JavaCodingStandards
Java coding specification (daily coding summary, standardizing project team members have a unified specification, convenient cooperation, error checking, refactoring, etc.) When you abandon the specification to write code as you like when you come back to read it, Remove all the impulses of rewriting.
Stars: ✭ 24 (-66.2%)
Mutual labels:  coding-standards
coding-standard
Consistence - Coding Standard - PHP Code Sniffer rules
Stars: ✭ 73 (+2.82%)
Mutual labels:  coding-standards

Slam PHP-CS-Fixer extensions

Latest Stable Version Downloads Integrate Code Coverage

PHP-CS-Fixer extensions and configurations

Installation

Execute:

composer require --dev slam/php-cs-fixer-extensions

Usage

In your .php_cs file:

<?php

$config = new PhpCsFixer\Config();

$config->setRiskyAllowed(true);

$config->registerCustomFixers([
    new SlamCsFixer\FinalAbstractPublicFixer(),
    new SlamCsFixer\FinalInternalClassFixer(),
    new SlamCsFixer\FunctionReferenceSpaceFixer(),
    new SlamCsFixer\InlineCommentSpacerFixer(),
    new SlamCsFixer\PhpFileOnlyProxyFixer(new PhpCsFixer\Fixer\Basic\BracesFixer()),
    new SlamCsFixer\Utf8Fixer(),
]);

$this->setRules([
    'Slam/final_abstract_public' => true,
    'Slam/final_internal_class' => true,
    'Slam/function_reference_space' => true,
    'Slam/inline_comment_spacer' => true,
    'Slam/php_only_braces' => true,
    'Slam/utf8' => true,
]);

$config->getFinder()
    ->in(__DIR__ . '/app')
    ->in(__DIR__ . '/tests')
    ->name('*.phtml')
;

return $config;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].