search

Next Section: yield大量减少服务器内存占用620 plays

5 秒后自动播放下一节
  Watch Again

Become a PHP Architect - Homemade PHP Framework

Introduction >
ChapterCourseware
Chapter1Homemade PHP framework (Part 1)

Use composer to implement automatic namespace loading and simple route resolution

21 minutes15 seconds

Implement forced routing through closure functions

25 minutes57 seconds

Chain operation realizes addition, deletion, modification and query of database (single case mode)

24 minutes53 seconds

Chain operation realizes addition, deletion, modification and query of database

24 minutes49 seconds

Implement database document generation and export tools

20 minutes27 seconds

Yield significantly reduces server memory usage

21 minutes43 seconds

One class handles all Excel operations (including image export)

28 minutes49 seconds

One class handles all Excel operations (export multiple worksheets)

28 minutes31 seconds

One class handles pdf output, printing, and downloading

23 minutes54 seconds

Command line operations and interaction with users under the command line

25 minutes52 seconds

60 lines of code handle all curl requests

19 minutes08 seconds

60 lines of code to handle all curl requests (includes explanation of curl setting parameters)

19 minutes23 seconds
Chapter2Homemade PHP framework (medium)

Automatically generate and return thumbnails based on url request parameters

21 minutes31 seconds

PHP implements image search (generates image hash value to calculate similarity)

22 minutes26 seconds

Implement AOP aspect programming and reduce code coupling

22 minutes37 seconds

One method to obtain request parameters and request headers in all request modes

20 minutes08 seconds

Implement parameter verification through validators and customize verification rules

21 minutes25 seconds

Coping with high concurrency: What are pessimistic locks and optimistic locks

20 minutes59 seconds

Solving high concurrency: the practical application of pessimistic locking and optimistic locking

20 minutes05 seconds

Combined with crontab to implement scheduled tasks: production investment of tasks

19 minutes45 seconds

Implementation of middleware, adding middleware to routing

20 minutes13 seconds

Implementation of dependency injection and explanation of PHP reflection class

22 minutes50 seconds
Chapter3Homemade PHP framework (Part 2)

Event monitoring and subscription

10 minutes24 seconds

High-concurrency rush buying: dealing with rush buying scenarios through message queues

24 minutes29 seconds

Implementation and application of rpc microservices

19 minutes10 seconds

Implementation of annotation routing

20 minutes42 seconds

Implementation of interface current limiting and the pros and cons of elegant code

19 minutes58 seconds

Implementation of atomic locks and cache drivers

22 minutes09 seconds
  • CancelreplySending
  • Cancelpost a noteSending