PHPackages                             rapidez/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. rapidez/coding-standards

ActivePackage[PSR &amp; Standards](/categories/psr-standards)

rapidez/coding-standards
========================

This package contains the coding standards configurations used for our packages and projects

1.0.2(3mo ago)01MITPHP

Since Mar 9Pushed 1mo agoCompare

[ Source](https://github.com/rapidez/coding-standards)[ Packagist](https://packagist.org/packages/rapidez/coding-standards)[ RSS](/packages/rapidez-coding-standards/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Laravel Coding Standard
=======================

[](#laravel-coding-standard)

This repository contains the coding standards configurations used for our packages and projects.

installation
------------

[](#installation)

Installation is not strictly necessary, you could simply copy the files you care about and update the paths. This way you will not get any updates in the future.

Run

```
composer require --dev "rapidez/coding-standards"
```

### Editorconfig

[](#editorconfig)

The editorconfig is made so your editors are in sync with each other, to prevent different editor from constantly causing changes and conflicts with each other or other tools.

```
ln -sf vendor/rapidez/coding-standards/.editorconfig .editorconfig
```

PHPStan
-------

[](#phpstan)

First you should install [Larastan](https://github.com/larastan/larastan).

```
composer require --dev "larastan/larastan"
```

then copy the sample configuration file, this includes larastan with some basic setup from coding-standards, like the editor url button.

```
cp vendor/rapidez/coding-standards/phpstan.sample.neon phpstan.neon
```

### Optional - Copy workflow

[](#optional---copy-workflow)

Once you've installed PHPStan you could copy the analyse workflow to automatically run it for PRs

```
mkdir -p .github/workflows
curl --output .github/workflows/analyse.yml https://raw.githubusercontent.com/rapidez/workflows/refs/heads/master/.github/sample-workflows/analyse.yml
```

Rector
------

[](#rector)

As a good companion to PHPStan we also have configuration for Rector which can in some cases fix PHPStan issues, and improve the results given by PHPStan

First you should install [rector-laravel](https://github.com/driftingly/rector-laravel)

```
composer require --dev "driftingly/rector-laravel"
```

then copy the sample configuration file, this includes Rector with some basic setup from coding-standards.

```
cp vendor/rapidez/coding-standards/rector.sample.php rector.php
```

Rector is much more stable in it's changes than it ever was, rarely (if at all) making breaking changes. We still recommend running it manually instead of using workflows.

Prettier formatter
------------------

[](#prettier-formatter)

To get prettier working in blade and frontend you will need to install prettier

```
yarn add --dev prettier prettier-plugin-tailwindcss @shufo/prettier-plugin-blade
```

and add a .prettierrc

```
ln -sf vendor/rapidez/coding-standards/.prettierrc .prettierrc
```

### Optional - Copy workflow

[](#optional---copy-workflow-1)

Once you've installed PHPStan you could copy the prettier workflow to automatically run it for PRs

```
mkdir -p .github/workflows
curl --output .github/workflows/prettier.yml https://raw.githubusercontent.com/rapidez/workflows/refs/heads/master/.github/sample-workflows/prettier.yml
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance85

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

106d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

352982.2k60](/packages/aura-di)[maclof/kubernetes-client

A simple yet elegant client for accessing and controlling a Kubernetes cluster.

234907.8k4](/packages/maclof-kubernetes-client)[icamys/php-sitemap-generator

Simple PHP sitemap generator.

175356.9k7](/packages/icamys-php-sitemap-generator)[wyrihaximus/psr-15-cat

CAT!

124.3k2](/packages/wyrihaximus-psr-15-cat)

PHPackages © 2026

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