PHP Beginner to Practical Tutorial
Environment construction
-
Construction of PHP/Laravel local development environment: Mac -
Construction of PHP/Laravel local development environment: Windows -
Supplement: Three Steps for Local Development of Windows PHP (I) -- Building a PHP Local Development Environment in Windows Based on WSL -
Supplement: Three Steps for Local Development of Windows PHP (II) - Arrange LNMP running environment based on Docker in WSL2 virtual machine -
Choose a handy PHP code editor -
Supplement: Three Steps for Local Development of Windows PHP (III) - PhpStorm integrates PHP in WSL for unit testing and code debugging -
Supplement: Laravel development using Visual Studio Code -
Write the first PHP program -
Embed PHP code in HTML
Basic grammar
-
Variables and Constants -
Basic data type -
Index array and associative array -
operator -
control structure -
Function (top): user-defined function and built-in function -
Function (below): anonymous function and scope
object-oriented
-
Class and object, access control -
Inheritance, encapsulation and polymorphism -
Abstract Classes and Interfaces (I) -
Abstract Classes and Interfaces (Part 2) -
Horizontal extension of PHP class function (I): object combination -
Expand PHP class functions horizontally (Part 2): Train -
Static properties and methods -
Magic Method, Serialization and Object Replication -
Error and Exception Handling (Part 1) -
Error and Exception Handling (Part 2)
Extended reading: PHP Design Patterns Series
Database operation
-
MySQL Getting Started, Installation, and Client Management Tools -
MySQL Basic Usage (Part 1): DDL and DML Statements -
MySQL Basic Usage (Part 2): DCL and Aggregate Functions -
Interact with database through PHP MySQL extension -
Interaction with MySQL database through PDO extension (I): basic use -
Interaction with MySQL database through PDO extension (Part 2): implementation of addition, deletion, modification and query and database transactions
HTTP programming
-
Based on Nginx+PHP FPM as HTTP server -
Obtain user request data and file upload processing -
Set HTTP response and file download -
Using and managing cookies in PHP -
Use and manage session in PHP and implement simple user login function
Project practice
-
Implementation of namespace and class auto loading -
Encapsulates HTTP request and response classes -
Implement HTTP router -
Implement HTTP controller -
Parsing and rendering of view template engine -
Implement ORM model class -
Introducing Laravel Mix to manage front-end resources -
Replace the blog theme with Clean Blog -
Submit a form to request data through Ajax -
Form data validation and request processing -
Introducing SB Admin 2 as the theme of background management system -
Add user authentication function for background management system -
Add, delete, modify and query functions for the management background album, article and message modules
Subscription Service