Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advancephp

my php oop practice folder from 2021

i was trying to learn classes, inheritance, interfaces and autoloading so this repo has small examples

files

  • src/BasicClass.php - simple user class
  • src/Inheritance.php - admin extends user
  • src/InterfaceExample.php - example of interface
  • src/Autoload.php - my first autoloading try
  • src/FormHelper.php - validating forms with oop
  • public/form.php - small form to test

run

you need php 7 or higher. run a local server:

php -S localhost:8000

then visit http://localhost:8000

what i learned

  • how classes work
  • public private protected
  • extends and override
  • interface is like a contract
  • autoloading with spl_autoload_register
  • validating input with objects

About

my php oop practice from 2021

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages