awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
piotrplenik avatar

piotrplenik/clean-code-php

0
View on GitHub↗
12,455 Stars·2,255 Forks·PHP·MIT·7 Aufrufe

Clean Code Php

This project is a PHP clean code guide and software architecture reference. It provides a set of standards, naming conventions, and design patterns intended to improve the long-term maintainability and readability of PHP codebases.

The guide emphasizes a structured approach to refactoring and system design, focusing on the application of SOLID principles to reduce coupling and increase extensibility. It advocates for object-oriented design through the use of composition over inheritance, the use of final classes to prevent unexpected overrides, and the implementation of strict type declarations to eliminate bugs associated with dynamic typing.

The framework covers broader capability areas including software quality and class design. It provides techniques for simplifying control flow through early returns, managing side effects via dedicated service layers, and enhancing readability by standardizing naming conventions and removing redundant logic.

Features

  • Clean Coding Standards - Provides a comprehensive set of standards and naming conventions for writing maintainable and readable PHP code.
  • PHP Backend Architecture - Provides a comprehensive guide to applying clean code and architectural patterns for maintainable PHP backend projects.
  • Encapsulation Techniques - Provides guidance on bundling data and methods while restricting access to internal state using private members.
  • Type Safety - Prevents runtime errors by enforcing strict type definitions and rigorous variable checks.
  • Type Integrity Enforcement - Enforces strict type declarations and identical comparisons to eliminate bugs caused by PHP dynamic typing.
  • Code Hygiene Standards - Establishes naming conventions and logic refinement techniques to ensure long-term codebase maintainability.
  • Code Style Guides - Provides a comprehensive set of standards and patterns for writing readable and maintainable PHP code.
  • Object-Oriented Design Patterns - Applies SOLID object-oriented design principles to reduce coupling and increase extensibility in PHP.
  • Architecture References - Serves as a reference for structuring PHP systems using object composition and encapsulated state management.
  • Class Design Standards - Offers standards for PHP class design focusing on encapsulation, final classes, and single responsibility.
  • PHP Refactoring Techniques - Provides a structured approach to refactoring PHP codebases by eliminating duplication and simplifying control flow.
  • Service Layers - Centralizes state-changing operations into dedicated service layers to decouple business logic from side effects.
  • Composition Over Inheritance - Provides a structured approach to building flexible PHP architectures by prioritizing object composition over class inheritance.
  • Object Oriented Design - Implements principles and patterns for structuring PHP systems based on objects and classes.
  • SOLID Principles - Implements SOLID design guidelines to reduce coupling and increase the extensibility of PHP modules.
  • Single Responsibility Principles - Applies the single-responsibility principle to ensure each PHP class has one specific purpose to improve maintainability.
  • Early Return Patterns - Provides techniques for simplifying control flow through early returns to eliminate deep indentation levels.
  • PHP Application Frameworks - Guides the design of flexible PHP applications using modular patterns and service-oriented architecture.
  • PHP Refactoring Frameworks - Implements a structured framework for refactoring PHP code to improve readability and reduce technical debt.
  • Side Effect Management - Isolates state-changing operations into dedicated service classes to prevent unpredictable side effects.
  • Class Inheritance Restrictions - Prevents uncontrolled inheritance chains by marking classes as final and encapsulating members.
  • Code Duplication Reduction - Provides strategies for removing redundant logic and dead code by creating abstractions that consolidate repetitive patterns.
  • Control Flow Optimization - Simplifies complex conditional logic by utilizing polymorphism and early-return patterns.
  • Early-Return Patterns - Implements early-return logic to simplify function control flow and eliminate deep indentation levels.
  • Function Signature Optimizations - Enhances testability by refining function signatures to limit argument counts and eliminate boolean flags.
  • Function Naming Patterns - Establishes a consistent and pronounceable vocabulary for naming variables and functions to increase clarity.
  • Naming Conventions - Standardizes naming conventions for identifiers to increase the searchability and readability of the codebase.
  • Polymorphism Patterns - Demonstrates how to replace complex conditional blocks with polymorphic class implementations to reduce cognitive load.
  • Type-Safe Development - Promotes reducing runtime bugs by enforcing strict type declarations and avoiding dynamic typing.

Star-Verlauf

Star-Verlauf für piotrplenik/clean-code-phpStar-Verlauf für piotrplenik/clean-code-php

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Clean Code Php

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Clean Code Php.
  • labs42io/clean-code-typescriptAvatar von labs42io

    labs42io/clean-code-typescript

    9,764Auf GitHub ansehen↗

    This project is a set of software engineering standards and architectural patterns for writing maintainable and refactorable TypeScript code. It provides a comprehensive guide for implementing clean code principles, focusing on the application of SOLID design and structural patterns to build decoupled systems. The framework prioritizes composition over inheritance and utilizes dependency inversion to reduce system coupling. It establishes standards for strict static typing and the use of read-only modifiers to ensure type safety and eliminate runtime errors. The guidance covers a broad range

    TypeScriptbest-practicesclean-architectureclean-code
    Auf GitHub ansehen↗9,764
  • ryanmcdermott/clean-code-javascriptAvatar von ryanmcdermott

    ryanmcdermott/clean-code-javascript

    94,454Auf GitHub ansehen↗

    This project is a collection of engineering guidelines and best practices for writing readable and maintainable JavaScript source code. It serves as a clean code guide and refactoring manual to help developers improve the structure of their codebases. The repository provides a reference for applying SOLID principles to reduce coupling and enable extensions without modifying existing logic. It includes a naming convention standard for using explicit, searchable identifiers and a guide for asynchronous patterns to replace nested callbacks with clearer execution flows. The guidelines cover soft

    JavaScriptbest-practicesclean-architectureclean-code
    Auf GitHub ansehen↗94,454
  • felipe-augusto/clean-code-javascriptAvatar von felipe-augusto

    felipe-augusto/clean-code-javascript

    4,891Auf GitHub ansehen↗

    This project is a comprehensive guide and set of engineering standards for writing readable, maintainable, and scalable JavaScript code. It provides a framework for software architecture, refactoring patterns, and clean coding practices designed to improve codebase health and longevity. The guide emphasizes the application of SOLID principles and architectural strategies such as dependency inversion and the separation of concerns. It focuses on transforming complex conditional logic through polymorphism and refactoring, while promoting a transition from imperative loops to declarative functio

    JavaScriptclean-codejavascript
    Auf GitHub ansehen↗4,891
  • alexeymezenin/laravel-best-practicesAvatar von alexeymezenin

    alexeymezenin/laravel-best-practices

    12,299Auf GitHub ansehen↗

    This project is a comprehensive guide to architectural standards and coding patterns for developing maintainable applications within the Laravel framework. It focuses on clean code standards, applying the single responsibility and DRY principles to ensure codebase predictability and consistency. The guide emphasizes decoupling components by moving business logic into service layers and shifting input validation into dedicated request classes to keep controllers lean. It advocates for the use of a service container and dependency injection to reduce class coupling and improve testability. The

    Auf GitHub ansehen↗12,299
Alle 30 Alternativen zu Clean Code Php anzeigen→

Häufig gestellte Fragen

Was macht piotrplenik/clean-code-php?

This project is a PHP clean code guide and software architecture reference. It provides a set of standards, naming conventions, and design patterns intended to improve the long-term maintainability and readability of PHP codebases.

Was sind die Hauptfunktionen von piotrplenik/clean-code-php?

Die Hauptfunktionen von piotrplenik/clean-code-php sind: Clean Coding Standards, PHP Backend Architecture, Encapsulation Techniques, Type Safety, Type Integrity Enforcement, Code Hygiene Standards, Code Style Guides, Object-Oriented Design Patterns.

Welche Open-Source-Alternativen gibt es zu piotrplenik/clean-code-php?

Open-Source-Alternativen zu piotrplenik/clean-code-php sind unter anderem: labs42io/clean-code-typescript — This project is a set of software engineering standards and architectural patterns for writing maintainable and… ryanmcdermott/clean-code-javascript — This project is a collection of engineering guidelines and best practices for writing readable and maintainable… felipe-augusto/clean-code-javascript — This project is a comprehensive guide and set of engineering standards for writing readable, maintainable, and… alexeymezenin/laravel-best-practices — This project is a comprehensive guide to architectural standards and coding patterns for developing maintainable… zakirullin/cognitive-load — This project is a collection of software engineering principles and architectural design patterns designed to minimize… zedr/clean-code-python — This project is a Python clean code guide and refactoring resource. It provides a collection of software craftsmanship…