Php - amitbhilagude/userfullinks GitHub Wiki

  1. Introduction
    1. Installing Php using XAMPP https://www.apachefriends.org/ or online tool called https://onlinephp.io/
    2. Configuring PHP using php.ini. This file keeps a central configuration. comments in this file represented in ;
    3. Php included in HTML with block syntax PHP ?>
    4. Phpmyadmin is a tool for Database administrations like MySQL
    5. It uses MySQli extensions to perform CRUD operations with MySQL
    6. Session management in PHP is done using a session object which will be stored in the Browser Cookies.
    7. There is build methods e.g HTML special chars to avoid cross scripting
    8. Latest Php version is 8
  2. Oops
    1. Class keyword and properties are prefixed with $
    2. Properties and Methods are accessed through => and support private, protected and public
    3. Methods are written using Functions
    4. Type is not explicitly defined in Properties and return type in methods
    5. Inheritance implemented using extends
    6. Interface implemented using implements
    7. Properties within the class accessed using this keyword
    8. Class with the same properties for parent and child are accessed using self or parent
    9. Static methods are accessed using classname::methodname
    10. Constructors and destructors are defined using construct or destruct
    11. Including other files which has class defined using include, include once, require or require once. require will throw an exception and stop the executions
    12. Abstract: same as abstrct
    13. Final: prevents child classes from overriding a method or constant by prefixing the definition with final
  3. Symphony Framework
    1. The PHP framework for creating websites and web applications. Built on top of the Symfony Components.
    2. It contains Doctrine ORM to query against DB
    3. It contains namespace and can be referred using use keyword
    4. It contains the Controllers for REST API and similar routing as .net
    5. Twig Templating Language
    6. Getting started is here https://symfony.com/doc/current/index.html
⚠️ **GitHub.com Fallback** ⚠️