PHPackages                             portavice/laravel-pint-config - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. portavice/laravel-pint-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

portavice/laravel-pint-config
=============================

Laravel Pint configuration used at portavice

v3.0.0(6mo ago)022.4k↓31.3%8MIT

Since Nov 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/portavice/laravel-pint-config)[ Packagist](https://packagist.org/packages/portavice/laravel-pint-config)[ RSS](/packages/portavice-laravel-pint-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (8)

Laravel Pint Config
===================

[](#laravel-pint-config)

[![MIT Licensed](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest version on Packagist](https://camo.githubusercontent.com/9f904a1a018e3922ccfdf7bb33eb323b6998c4a3df1afe5ee5c89925dd5bfe64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f727461766963652f6c61726176656c2d70696e742d636f6e6669672e737667)](https://packagist.org/packages/portavice/laravel-pint-config)[![Total downloads](https://camo.githubusercontent.com/de7f5a7f81467fb3aacfbe202964cad71ab7c98936200f5249ed4b745915d42d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f727461766963652f6c61726176656c2d70696e742d636f6e6669672e737667)](https://packagist.org/packages/portavice/laravel-pint-config)

This project contains the default configuration for [Laravel Pint](https://laravel.com/docs/12.x/pint#configuring-pint)used at portavice GmbH.

The ruleset is based on [PSR12](https://cs.symfony.com/doc/ruleSets/PSR12.html) with additional rules for

- ordered class elements, imports, used interfaces and traits, parameter types, attributes,
- short syntax, proper indentation, trailing commas, square index braces for arrays,
- consistent imports, braces, operators, spacing, blank lines, formatting of PHPDoc and other comments,
- preferring single quotes,
- combining consecutive `isset`s or `unset`s,
- enforcing PSR autoloading and global imports,
- enforcing PHPUnit standards (camel case for methods, data providers after the test using it, use attributes/code instead of PHPDoc when possible),
- and avoiding useless code (`else`, `return`, `sprintf`, empty statements).

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)

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

[](#installation)

First, install the package via [Composer](https://getcomposer.org/):

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

Note that this automatically installs Laravel Pint as well.

Usage
-----

[](#usage)

To simplify usage, you may configure the following scripts in your `composer.json`:

```
{
    "scripts": {
        "csPHP": "pint --config vendor/portavice/laravel-pint-config/pint.json --test",
        "csfixPHP": "pint --config vendor/portavice/laravel-pint-config/pint.json"
    }
}
```

Just run `composer csPHP` to check and `composer csfixPHP` to fix the PHP files in your Laravel project. Otherwise, you will have to call the `pint` command with the `--config` option.

To use and adjust the set of rules defined by this package, you can also copy the `pint.json` from this repository into your project.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance67

Regular maintenance activity

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~364 days

Total

3

Last Release

194d ago

Major Versions

v1.0.0 → v2.0.02023-11-14

v2.0.0 → v3.0.02025-11-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/114071541?v=4)[portavice GmbH](/maintainers/portavice)[@portavice](https://github.com/portavice)

---

Top Contributors

[![patrickrobrecht](https://avatars.githubusercontent.com/u/12370952?v=4)](https://github.com/patrickrobrecht "patrickrobrecht (7 commits)")

### Embed Badge

![Health badge](/badges/portavice-laravel-pint-config/health.svg)

```
[![Health](https://phpackages.com/badges/portavice-laravel-pint-config/health.svg)](https://phpackages.com/packages/portavice-laravel-pint-config)
```

###  Alternatives

[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

16083.3k](/packages/erag-laravel-pwa)[mateusjunges/laravel-invite-codes

This package allows you to easily manage invite codes for your Laravel application.

29166.8k](/packages/mateusjunges-laravel-invite-codes)[amphibee/laravel-pint-pre-commit

Laravel Pint pre-commit hook allow you to analyse your code with the awesome Laravel Pint.

1943.9k](/packages/amphibee-laravel-pint-pre-commit)[owowagency/laravel-resources

A package to develop projects faster.

1112.0k2](/packages/owowagency-laravel-resources)

PHPackages © 2026

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