# piotrplenik/clean-code-php

:bathtub: Clean Code concepts adapted for PHP

Repository: https://github.com/piotrplenik/clean-code-php
Canonical: https://ross.abutalabs.com/products/clean-code-php
Language: PHP
License: MIT
License Family: permissive
Last push: 2024-05-09T12:52:01+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3516, "days_push": 846, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12449, forks 2249 (observed 2026-08-28T04:10:52.747990+00:00)

## What it is
A curated guide adapting Robert C. Martin's Clean Code concepts to PHP, with concrete before/after code examples. It covers naming, functions, objects, classes, and SOLID principles for writing maintainable PHP.

## Use cases
- learn clean code principles in PHP
- improve readability of PHP code
- understand SOLID principles with PHP examples
- onboard junior PHP developers to best practices
- refactor messy PHP codebases
- establish coding standards for a PHP team

## When to choose
- you write PHP and want practical, example-driven clean code guidance
- you need a free reference for code review standards in PHP projects

## When to avoid
- you need automated linting or formatting tools rather than a guide
- you work in a language other than PHP

## Facets
- artifact type: learning-resource
- maturity: stable
- function: documentation
- domain: developer-tools, tutorials
- platform: php
- tags: clean-code, best-practices, code-quality, solid-principles, style-guide

## Member repositories
- piotrplenik/clean-code-php (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.747990+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:03.822370+00:00, confidence not recorded.
  - readme: https://github.com/piotrplenik/clean-code-php (fetched 2026-08-28T04:10:52.747990+00:00, sha 25ac5b18ee63)
- Data as of 2026-08-30T08:39:29.467469+00:00.
