Since seeing the open source framework Phalcon in Open Source China and reading its development documentation, I feel that its documentation is not just about its framework, nor is it just explaining the PHP language, but to a greater extent. How to design a framework and how to develop software efficiently and elegantly. Interested children’s shoes are strongly recommended to read: Link above: http://docs.phalconphp.com/en/latest/index.html But because the Phalcon framework is an extension written in C, there is no PHP related information. The source code, but its development ideas are worth learning, referencing, and learning from, so I implemented some of the core classes according to its ideas and share them here. Purpose: 1. Independently implement Phalcon partial classification through the great ideas of Phalcon, deepen your understanding of it, and your own coding capabilities; 2. As a common core class, it can be appropriately applied to future projects after implementation; 3 , standardize your own development process (testing + examples + generating release code); Only two classes are currently implemented, classified into DI (Dependency Injection) class and Loader class (Universal Class Loader), which may be implemented later when there is time others. Interested students can also try it~ Attachment list: 1. All file compression packages (source code, release code, examples, tests) 2. Screenshots of running effects 3. FDI sample code (for viewing Convenient, you can also view it in the download code) PS: The editor used the autoloading class FLoader I just wrote to replace the autoloading class of the existing project. It can be replaced perfectly without any error. I am very happy~~~ ~
|