PHPackages                             synergitech/laravel-coding-standards - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. synergitech/laravel-coding-standards

ActiveLibrary[Testing &amp; Quality](/categories/testing)

synergitech/laravel-coding-standards
====================================

A generic package for implementing Laravel Pint coding standards across Laravel packages

v2.0.0(1mo ago)15.0k↓22.2%[1 issues](https://github.com/SynergiTech/laravel-coding-standards/issues)[1 PRs](https://github.com/SynergiTech/laravel-coding-standards/pulls)1MITShellPHP ^8.1

Since Aug 22Pushed 1mo agoCompare

[ Source](https://github.com/SynergiTech/laravel-coding-standards)[ Packagist](https://packagist.org/packages/synergitech/laravel-coding-standards)[ RSS](/packages/synergitech-laravel-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (11)Used By (1)

Laravel Coding Standards
========================

[](#laravel-coding-standards)

A Composer package for implementing Laravel Pint coding standards across Laravel packages.

Overview
--------

[](#overview)

This package provides:

- A standardised `pint.json` configuration file with PSR-12 preset and custom rules
- Shell scripts to run Laravel Pint for code formatting and testing
- Automatic Laravel Pint dependency management through Composer

Installation
------------

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

Install the package using Composer:

```
composer require synergitech/laravel-coding-standards --dev
```

This will automatically install Laravel Pint as a dependency and make the scripts available in your project.

### Alternative Installation Methods

[](#alternative-installation-methods)

1. **As a Git Submodule:**

    ```
    git submodule add https://github.com/SynergiTech/laravel-coding-standards.git tools/coding-standards
    ```
2. **Manual Installation:**Copy the files directly to your project and install Laravel Pint separately:

    ```
    composer require laravel/pint --dev
    ```

Usage
-----

[](#usage)

### Running Pint

[](#running-pint)

#### Apply Code Formatting

[](#apply-code-formatting)

To automatically fix coding standard issues:

```
./vendor/synergitech/laravel-coding-standards/pint
```

Or if installed as submodule/manually:

```
./tools/coding-standards/pint
# or
./pint
```

You can pass additional arguments to customise the behaviour:

```
./vendor/synergitech/laravel-coding-standards/pint --verbose
./vendor/synergitech/laravel-coding-standards/pint --dry-run
./vendor/synergitech/laravel-coding-standards/pint app/Models
```

#### Test Code Standards

[](#test-code-standards)

To check for coding standard issues without making changes:

```
./vendor/synergitech/laravel-coding-standards/pint-test
```

Or if installed as submodule/manually:

```
./tools/coding-standards/pint-test
# or
./pint-test
```

You can pass additional arguments to customise the testing:

```
./vendor/synergitech/laravel-coding-standards/pint-test --verbose
./vendor/synergitech/laravel-coding-standards/pint-test app/Controllers
```

### Adding Scripts to Your Composer.json

[](#adding-scripts-to-your-composerjson)

For easier access, you can add these scripts to your project's `composer.json`:

```
{
    "scripts": {
        "pint": "./vendor/synergitech/laravel-coding-standards/pint",
        "pint:test": "./vendor/synergitech/laravel-coding-standards/pint-test"
    }
}
```

Then run:

```
composer run pint        # Apply formatting
composer run pint:test   # Test standards
```

### Boost Guidelines

[](#boost-guidelines)

As this plugin acts as a wrapper for pint, the boost guidelines that get published into the project do not reference this package. If you use boost then you will need to override the boost guidelines for pint. If you want this package to publish boost guideline stubs into your project (`.ai/guidelines`), add the Composer install script override below to your project's `composer.json`:

```
{
    "scripts": {
        "post-install-cmd": [
            "SynergiTech\\LaravelCodingStandards\\ComposerScripts::publishGuidelines"
        ]
    }
}
```

After adding it, run:

```
composer install
```

This triggers `SynergiTech\LaravelCodingStandards\ComposerScripts::publishGuidelines` and copies the guideline files into `.ai/guidelines` which boost will interpret as an overwrite when running `boost:install` and `boost:update`.

Configuration
-------------

[](#configuration)

The `pint.json` file includes:

- PSR-12 preset as the base standard
- Custom rules for enhanced code quality
- Exclusion of common directories (vendor, storage, bootstrap/cache)

Custom Rules Included
---------------------

[](#custom-rules-included)

- Array syntax and indentation improvements
- Multiline comment alignment
- String concatenation with single space
- Strict type comparisons
- Ordered class elements and imports
- Modern PHP syntax preferences
- And many more quality-of-life improvements

For a full list of rules, see the `pint.json` configuration file.

Requirements
------------

[](#requirements)

- PHP ^8.1
- Laravel Pint ^1.0 (automatically installed with this package)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance70

Regular maintenance activity

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~72 days

Total

4

Last Release

54d ago

Major Versions

v0.0.1-beta → v1.0.02025-08-22

v1.1.0 → v2.0.02026-03-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/d69f33cc173ab9f35c67cb1bbaabeb0b705f983f65253393525ccfc539abc260?d=identicon)[SynergiTech](/maintainers/SynergiTech)

---

Top Contributors

[![whoboy2](https://avatars.githubusercontent.com/u/7756456?v=4)](https://github.com/whoboy2 "whoboy2 (3 commits)")[![williamrenfrew](https://avatars.githubusercontent.com/u/12625062?v=4)](https://github.com/williamrenfrew "williamrenfrew (3 commits)")[![edenchazard](https://avatars.githubusercontent.com/u/38665888?v=4)](https://github.com/edenchazard "edenchazard (2 commits)")[![willpower232](https://avatars.githubusercontent.com/u/1619102?v=4)](https://github.com/willpower232 "willpower232 (2 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

laravelcode qualitycoding-standardsphp-cs-fixerpsr-12Pint

### Embed Badge

![Health badge](/badges/synergitech-laravel-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/synergitech-laravel-coding-standards/health.svg)](https://phpackages.com/packages/synergitech-laravel-coding-standards)
```

PHPackages © 2026

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