Skip to content

Repository files navigation

SOLID Principles in PHP

This project demonstrates the use of SOLID principles in PHP. It includes examples of the Open/Closed Principle and the Dependency Inversion Principle.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • PHP 8.2 or higher
  • Composer

Installing

  1. Clone the repository
    git clone https://github.com/jfallis/solid-principles-php.git
  2. Run Tests
    make test
  3. Run coverage report
    make coverage-report

SOLID Principles

The SOLID principles are a set of five principles that help developers design maintainable and scalable software. The principles are:

  1. Single Responsibility Principle
    1. Test
  2. Open/Closed Principle
    1. Test
  3. Liskov Substitution Principle
    1. Test
  4. Interface Segregation Principle
    1. Test
  5. Dependency Inversion Principle
    1. Test

About

SOLID Principles in PHP

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages