Skip to content

chsjr1996/oop-slimphp-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O.O.P. examples

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)

Requirements

  • php 8.1
  • Docker (optional)

Installation (docker)

  • 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

Ports

Port Description
80 Application
3306 MySQL
8000 phpMyAdmin

Under development