PHPackages                             gd-75/php-cs-fixer-enforce-double-quotes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gd-75/php-cs-fixer-enforce-double-quotes

ActiveLibrary

gd-75/php-cs-fixer-enforce-double-quotes
========================================

A rule for PHP CS Fixer to enforce double quotes.

1.1.0(3y ago)630.4k↓39.3%12MITPHPPHP &gt;=7.4

Since Aug 19Pushed 3y agoCompare

[ Source](https://github.com/gd-75/php-cs-fixer-enforce-double-quotes)[ Packagist](https://packagist.org/packages/gd-75/php-cs-fixer-enforce-double-quotes)[ RSS](/packages/gd-75-php-cs-fixer-enforce-double-quotes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (2)

[![gd-75/php-cs-fixer-enforce-double-quotes](https://github.com/gd-75/php-cs-fixer-enforce-double-quotes/actions/workflows/tests.yml/badge.svg)](https://github.com/gd-75/php-cs-fixer-enforce-double-quotes/actions/workflows/tests.yml)

php-cs-fixer-enforce-double-quotes
==================================

[](#php-cs-fixer-enforce-double-quotes)

A rule for PHP CS Fixer to enforce double quotes.

Installation and usage
----------------------

[](#installation-and-usage)

```
composer require --dev gd-75/php-cs-fixer-enforce-double-quotes
```

In your PHP CS Fixer configuration, add:

```
use GD75\DoubleQuoteFixer\DoubleQuoteFixer;
use PhpCsFixer\Config;

$config = new Config();

$config
    ->registerCustomFixers(
        [
            new DoubleQuoteFixer()
        ]
    )
    ->setRules(
        [
            "GD75/double_quote_fixer" => true,
        ]
    );
```

> ### Warning
>
> [](#warning)
>
> Before auto-fixing quotes on your project, please run a dry-run with diffs to make sure the fixer works correctly.

Contributors
------------

[](#contributors)

I'd like to thank the people who spend time to improve the project !

- Androl Genhald (tests &amp; improvements on supported strings)

TO-DO
-----

[](#to-do)

- Create a configuration for the allowance of single quoted strings when it contains a double quote

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~326 days

Total

2

Last Release

1407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ab549939012d1118eb98c706c368de08e05d8a319852db8f878c32e65b40c59?d=identicon)[gd-75](/maintainers/gd-75)

---

Top Contributors

[![noahboegli](https://avatars.githubusercontent.com/u/39568628?v=4)](https://github.com/noahboegli "noahboegli (7 commits)")[![AndrolGenhald](https://avatars.githubusercontent.com/u/7794502?v=4)](https://github.com/AndrolGenhald "AndrolGenhald (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gd-75-php-cs-fixer-enforce-double-quotes/health.svg)

```
[![Health](https://phpackages.com/badges/gd-75-php-cs-fixer-enforce-double-quotes/health.svg)](https://phpackages.com/packages/gd-75-php-cs-fixer-enforce-double-quotes)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
