PHP Classes

How Can a Developer Learn PHP Fast from Example Code Using the Package Learn PHP: Examples of PHP features using OOP or global code

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-04-26 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
learnphp 1.0BSD License5PHP 5, Language, E-Learning
Description 

Author

This package provides examples of PHP features using OOP or global code.

It provides documentation and example scripts of global code and object-oriented code that demonstrate the features of the PHP language.

Currently, it provides examples for Object-Oriented Programming of

- Abstract classes

- Magic methods

- Method overloading

- Polymorphism


It also provides example scripts that use global code to:

- Trigger exceptions

- Validate request data

Picture of Kabir Hossain
  Performance   Level  
Name: Kabir Hossain <contact>
Classes: 5 packages by
Country: Bangladesh Bangladesh
Innovation award
Innovation award
Nominee: 1x

Instructions

Please read this document to learn PHP OOP (Object Oriented Programming or this document to [learn PHP using global code](https://www.phpclasses.org/browse/file/399518.html].

Documentation

  1. Validation: Check input data in proper form.
  2. Sanitization: Remove illegal character from input data.

    A. filter_var(variable, filter, options) -> This functions validate and sanitize the input.


  Files folder image Files (22)  
File Role Description
Files folder imageOOP-PHP (2 files, 6 directories)
Files folder imageRaw-PHP (3 files, 1 directory)
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files (22)  /  OOP-PHP  
File Role Description
Files folder imageabstract_class (2 files)
Files folder imageinterface (2 files)
Files folder imagemagic_methods (2 files, 1 directory)
Files folder imagemethod_overloading (2 files)
Files folder imageoverriding (2 files)
Files folder imagepolymorphism (1 file)
  Accessible without login Plain text file Abstract-Interface-Uses.php Doc. Documentation
  Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files (22)  /  OOP-PHP  /  abstract_class  
File Role Description
  Accessible without login Plain text file abstract_class.md Doc. Documentation
  Plain text file abstract_class.php Class Class source

  Files folder image Files (22)  /  OOP-PHP  /  interface  
File Role Description
  Plain text file interface.php Class Class source
  Accessible without login Plain text file interface_doc.md Doc. Documentation

  Files folder image Files (22)  /  OOP-PHP  /  magic_methods  
File Role Description
Files folder imageclass_autoloading (1 file, 1 directory)
  Plain text file magic_method1.php Class Class source
  Accessible without login Plain text file magic_methods.md Doc. Documentation

  Files folder image Files (22)  /  OOP-PHP  /  magic_methods  /  class_autoloading  
File Role Description
Files folder imageclass (2 files)
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files (22)  /  OOP-PHP  /  magic_methods  /  class_autoloading  /  class  
File Role Description
  Plain text file Database.php Class Class source
  Plain text file User.php Class Class source

  Files folder image Files (22)  /  OOP-PHP  /  method_overloading  
File Role Description
  Plain text file method_overloading.php Class Class source
  Plain text file method_overloading2.php Class Class source

  Files folder image Files (22)  /  OOP-PHP  /  overriding  
File Role Description
  Plain text file Overriding.php Class Class source
  Accessible without login Plain text file Overriding_doc.md Doc. Documentation

  Files folder image Files (22)  /  OOP-PHP  /  polymorphism  
File Role Description
  Accessible without login Plain text file polymorphism_doc.md Doc. Documentation

  Files folder image Files (22)  /  Raw-PHP  
File Role Description
Files folder image.idea (2 files)
  Accessible without login Plain text file ExceptionHandling.php Example Example script
  Accessible without login Plain text file Readme.md Doc. Documentation
  Accessible without login Plain text file ValidationSanitization.php Example Example script

  Files folder image Files (22)  /  Raw-PHP  /  .idea  
File Role Description
  Accessible without login Plain text file LearnPHP.iml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0