Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tzepart/solid
https://github.com/tzepart/solid
php8 solid solid-principles
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/tzepart/solid
- Owner: TzepART
- License: mit
- Created: 2022-04-01T00:40:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T22:05:10.000Z (over 2 years ago)
- Last Synced: 2023-03-06T14:17:17.107Z (over 1 year ago)
- Topics: php8, solid, solid-principles
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Before
```
composer install
```## Example running
```
php solid_runner SRP
```## Principles
| Name | Description |
| -------- | ----------- |
| [Single-responsibility Principle (SRP)](src/SingleResponsibility) | A class should have one and only one reason to change, meaning that a class should have only one job. |
| [Open-closed Principle (OCP)](src/OpenClosed) | Objects or entities should be open for extension but closed for modification. |
| [Liskov Substitution Principle (LSP)](src/LiskovSubstitution) | This means that every subclass or derived class should be substitutable for their base or parent class. |
| [Interface Segregation Principle (ISP)](src/InterfaceSegregation) | A client should never be forced to implement an interface that it doesn’t use, or clients shouldn’t be forced to depend on methods they do not use. |
| [Dependency Inversion Principle (DIP)](src/DependencyInversion) | Entities must depend on abstractions, not on concretions. It states that the high-level module must not depend on the low-level module, but they should depend on abstractions. |