This repository contains some Oriented Object Programation examples using PHP. The examples include:
- The four pillars (Abstraction, encapsulation, polimorfism and inheritance)
- Use of Interfaces
- Dependency Injection (Vanilla & PHP DI)
- Container (PHP DI)
- php 8.1
- Docker (optional)
git clone https://github.com/chsjr1996/oop-examples.git
docker-compose up -d
By default Docker setup use port 80 to access application, then go to your browser and use this url: http://localhost
Port | Description |
---|---|
80 | Application |
3306 | MySQL |
8000 | phpMyAdmin |