This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SOLID Principles in PHP with Examples | |
| SOLID is an acronym for five object-oriented design principles that help create maintainable and scalable software. Here's each principle explained with PHP examples: | |
| 1. Single Responsibility Principle (SRP) | |
| A class should have only one reason to change (one responsibility). | |
| Bad Example: | |
| class User { | |
| public function __construct(private string $name) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |