SRP - The Single Responsibility Principle
OCP - The Open Closed Principle
LSP - The Liskov Substitution Principle
ISP - The Interface Segregation Principle
DIP - The Dependency Inversion Principle
Clone de repository
git clone https://github.com/joaoreisweb/calculator_solid.git .
Go to calculator folder
cd calculator
php -S localhost:8000
Go to url
http://localhost:8000
v1 = value 1
v2 = value 2
o = operator signal ( Accepted signals + - * / )
e = equation
php calculator_cmd.php e=5+5
php calculator_cmd.php v1=5 v2=5 o=+